mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-07 21:20:07 +00:00
Fix unit tests that broke in last commit
This commit is contained in:
parent
b5731ab923
commit
7c0495c401
@ -99,7 +99,7 @@
|
|||||||
NSData *data = [[NSData alloc] initWithBase64Encoding:@"TestData"];
|
NSData *data = [[NSData alloc] initWithBase64Encoding:@"TestData"];
|
||||||
NSString* type = @"text/plain";
|
NSString* type = @"text/plain";
|
||||||
|
|
||||||
BITCrashAttachment *originalAttachment = [[BITCrashAttachment alloc] initWithFilename:filename attachmentData:data contentType:type];
|
BITCrashAttachment *originalAttachment = [[BITCrashAttachment alloc] initWithFilename:filename crashAttachmentData:data contentType:type];
|
||||||
NSString *attachmentFilename = [[_sut crashesDir] stringByAppendingPathComponent:@"testAttachment"];
|
NSString *attachmentFilename = [[_sut crashesDir] stringByAppendingPathComponent:@"testAttachment"];
|
||||||
|
|
||||||
[_sut persistAttachment:originalAttachment withFilename:attachmentFilename];
|
[_sut persistAttachment:originalAttachment withFilename:attachmentFilename];
|
||||||
@ -107,7 +107,7 @@
|
|||||||
BITCrashAttachment *decodedAttachment = [_sut attachmentForCrashReport:attachmentFilename];
|
BITCrashAttachment *decodedAttachment = [_sut attachmentForCrashReport:attachmentFilename];
|
||||||
|
|
||||||
assertThat(decodedAttachment.filename, equalTo(filename));
|
assertThat(decodedAttachment.filename, equalTo(filename));
|
||||||
assertThat(decodedAttachment.attachmentData, equalTo(data));
|
assertThat(decodedAttachment.crashAttachmentData, equalTo(data));
|
||||||
assertThat(decodedAttachment.contentType, equalTo(type));
|
assertThat(decodedAttachment.contentType, equalTo(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user