Skip to content

Commit

Permalink
Test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pokeb committed Jun 17, 2010
1 parent f0f2f9f commit 63f9073
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Classes/ASIHTTPRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


// Automatically set on build
NSString *ASIHTTPRequestVersion = @"v1.6.2-18 2010-06-17";
NSString *ASIHTTPRequestVersion = @"v1.6.2-19 2010-06-17";

NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";

Expand Down
9 changes: 5 additions & 4 deletions Classes/Tests/ASIHTTPRequestTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -1560,12 +1560,12 @@ - (void)testDelegateResponseDataHandling
[self setResponseData:[NSMutableData dataWithLength:0]];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/the_great_american_novel_%28young_readers_edition%29.txt"]];
[request setDelegate:self];
[request setDidReceiveDataSelector:@selector(testRequest:didReceiveData:)];
[request setDidFinishSelector:@selector(testRequestFinished:)];
[request setDidReceiveDataSelector:@selector(theTestRequest:didReceiveData:)];
[request setDidFinishSelector:@selector(theTestRequestFinished:)];
[request startAsynchronous];
}

- (void)testRequestFinished:(ASIHTTPRequest *)request
- (void)theTestRequestFinished:(ASIHTTPRequest *)request
{
ASIHTTPRequest *request2 = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/the_great_american_novel_%28young_readers_edition%29.txt"]];
[request2 startSynchronous];
Expand All @@ -1574,7 +1574,7 @@ - (void)testRequestFinished:(ASIHTTPRequest *)request
GHAssertTrue(success,@"Failed to correctly download and store the response using a delegate");
}

- (void)testRequest:(ASIHTTPRequest *)request didReceiveData:(NSData *)data
- (void)theTestRequest:(ASIHTTPRequest *)request didReceiveData:(NSData *)data
{
[[self responseData] appendData:data];
}
Expand Down Expand Up @@ -1603,5 +1603,6 @@ - (void)testNilPortCredentialsMatching
[request startSynchronous];
}


@synthesize responseData;
@end

0 comments on commit 63f9073

Please sign in to comment.