Permalink
Browse files

Merge pull request #312 from skabber/master

Update the test case due to the userAgent to userAgentString change.
  • Loading branch information...
2 parents 6cf5f08 + 6ce86c3 commit f99ca467530845afdf5a95c02f4df2eb0aa7b88a @erikchen erikchen committed Mar 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/Tests/ASIHTTPRequestTests.m
@@ -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");

0 comments on commit f99ca46

Please sign in to comment.