Skip to content

Commit

Permalink
Add test for confirming that an RKClient object can pass through a ti…
Browse files Browse the repository at this point in the history
…meoutInterval to a request.
  • Loading branch information
Brian Morton authored and blakewatters committed Jan 20, 2012
1 parent f9dd0e9 commit b88bba9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Specs/Network/RKClientSpec.m
Expand Up @@ -106,6 +106,13 @@ - (void)testShouldNotSuspendTheMainQueueOnBaseURLChangeWhenReachabilityHasBeenEs
assertThatBool(client.requestQueue.suspended, is(equalToBool(NO))); assertThatBool(client.requestQueue.suspended, is(equalToBool(NO)));
} }


- (void)testShouldAllowYouToChangeTheTimeoutInterval {
RKClient* client = [RKClient clientWithBaseURL:@"http://restkit.org"];
client.timeoutInterval = 20.0;
RKRequest* request = [client requestWithResourcePath:@"" delegate:nil];
assertThatFloat(request.timeoutInterval, is(equalToFloat(20.0)));
}

- (void)testShouldPerformAPUTWithParams { - (void)testShouldPerformAPUTWithParams {
NSLog(@"PENDING ---> FIX ME!!!"); NSLog(@"PENDING ---> FIX ME!!!");
return; return;
Expand Down

0 comments on commit b88bba9

Please sign in to comment.