Merge pull request #1124 from carsonmcdonald/fiximagetest

Use new httpbin image request to fix image test
This commit is contained in:
Mattt Thompson 2013-07-10 19:02:37 -07:00
Родитель 80ae9b758c 5396127e46
Коммит 81ab861fd3
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -105,7 +105,9 @@
}
- (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];