瀏覽代碼

Remove usage of XCTestExpectation.inverted (not supported)

Henddher Pedroza 8 年之前
父節點
當前提交
a241b4fcdd
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      Tests/Tests/AFImageDownloaderTests.m

+ 0 - 2
Tests/Tests/AFImageDownloaderTests.m

@@ -291,8 +291,6 @@
 
 - (void)testThatImageCacheIsPromptedShouldCacheNot {
     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];
     mock.shouldCache = ^BOOL(UIImage *img, NSURLRequest *req, NSString *iden) {