Skip to content

Commit

Permalink
Use new httpbin image request to fix image test.
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonmcdonald authored and Blake Watters committed Jul 14, 2013
1 parent e681d45 commit 76735cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/AFImageRequestOperationTests.m
Original file line number Diff line number Diff line change
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 76735cb

Please sign in to comment.