Browse Source

Remove usage of XCTestExpectation.inverted (not supported)

Henddher Pedroza 8 years ago
parent
commit
a241b4fcdd
1 changed files with 0 additions and 2 deletions
  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) {