Skip to content

Commit

Permalink
Merge pull request AFNetworking#1124 from carsonmcdonald/fiximagetest
Browse files Browse the repository at this point in the history
Use new httpbin image request to fix image test
  • Loading branch information
mattt committed Jul 11, 2013
2 parents 80ae9b7 + 5396127 commit 81ab861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/AFImageRequestOperationTests.m
Expand Up @@ -105,7 +105,9 @@ - (void)testThatImageRequestOperationDoesNotAcceptInvalidFormatTypes {
}

- (void)testThatImageResponseIsNotNilWhenRequestSucceeds {
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/response-headers?Content-Type=image/png" relativeToURL:self.baseURL]];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"/image" relativeToURL:self.baseURL]];
[request setValue:@"image/png" forHTTPHeaderField:@"Accept"];

AFImageRequestOperation *operation = [[AFImageRequestOperation alloc] initWithRequest:request];
[operation start];

Expand Down

0 comments on commit 81ab861

Please sign in to comment.