Skip to content

Commit

Permalink
Merge pull request pokeb#312 from skabber/master
Browse files Browse the repository at this point in the history
Update the test case due to the userAgent to userAgentString change.
  • Loading branch information
erik chen committed Mar 7, 2012
2 parents 6cf5f08 + 6ce86c3 commit f99ca46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Tests/ASIHTTPRequestTests.m
Expand Up @@ -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");
Expand Down

0 comments on commit f99ca46

Please sign in to comment.