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

Already on GitHub? Sign in to your account

Update the test case due to the userAgent to userAgentString change. #312

Merged
merged 1 commit into from Mar 7, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -400,7 +400,7 @@ - (void)testUserAgent
// Test again using userAgent
request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/user-agent"]];
- [request setUserAgent:customUserAgent];
+ [request setUserAgentString:customUserAgent];
[request startSynchronous];
success = [[request responseString] isEqualToString:customUserAgent];
GHAssertTrue(success,@"Failed to set the correct user-agent for a single request");