Merge pull request #312 from skabber/master
Update the test case due to the userAgent to userAgentString change.
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -400,7 +400,7 @@ | @@ -400,7 +400,7 @@ | ||
| 400 | 400 | ||
| 401 | // Test again using userAgent | 401 | // Test again using userAgent |
| 402 | request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/user-agent"]]; | 402 | request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/user-agent"]]; |
| 403 | - [request setUserAgent:customUserAgent]; | 403 | + [request setUserAgentString:customUserAgent]; |
| 404 | [request startSynchronous]; | 404 | [request startSynchronous]; |
| 405 | success = [[request responseString] isEqualToString:customUserAgent]; | 405 | success = [[request responseString] isEqualToString:customUserAgent]; |
| 406 | GHAssertTrue(success,@"Failed to set the correct user-agent for a single request"); | 406 | GHAssertTrue(success,@"Failed to set the correct user-agent for a single request"); |
-
Please register or login to post a comment