New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config AFImageDownloader NSURLCache and ask AFImageRequestCache implementer if an image should be cached #4010

Merged
merged 9 commits into from Dec 15, 2017

Remove usage of XCTestExpectation.inverted (not supported)

  • Loading branch information...
wjehenddher committed Jul 28, 2017
commit a241b4fcdd42c40b653167501095a2795a4cac8a
@@ -291,8 +291,6 @@ - (void)testThatImageCacheIsPromptedShouldCache {
- (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) {
ProTip! Use n and p to navigate between commits in a pull request.