소스 검색

Remove usage of XCTestExpectation.inverted (not supported)

Henddher Pedroza 8 년 전
부모
커밋
c69c109da8
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      Tests/Tests/AFImageDownloaderTests.m

+ 0 - 2
Tests/Tests/AFImageDownloaderTests.m

@@ -291,8 +291,6 @@
 
 
 - (void)testThatImageCacheIsPromptedShouldCacheNot {
 - (void)testThatImageCacheIsPromptedShouldCacheNot {
     XCTestExpectation *expectation3 = [self expectationWithDescription:@"image 1 shouldCache called"];
     XCTestExpectation *expectation3 = [self expectationWithDescription:@"image 1 shouldCache called"];
-    XCTestExpectation *expectation4 = [self expectationWithDescription:@"image 1 & 2 addCache NOT called"];
-    expectation4.inverted = YES;
     
     
     MockAFAutoPurgingImageCache *mock = [[MockAFAutoPurgingImageCache alloc] init];
     MockAFAutoPurgingImageCache *mock = [[MockAFAutoPurgingImageCache alloc] init];
     mock.shouldCache = ^BOOL(UIImage *img, NSURLRequest *req, NSString *iden) {
     mock.shouldCache = ^BOOL(UIImage *img, NSURLRequest *req, NSString *iden) {