Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test for confirming that an RKClient object can pass through a ti…

…meoutInterval to a request.
  • Loading branch information...
commit b88bba9853439e2b7e868a54b8491d996b5824af 1 parent f9dd0e9
Brian Morton bmorton authored blakewatters committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 Specs/Network/RKClientSpec.m
7 Specs/Network/RKClientSpec.m
View
@@ -106,6 +106,13 @@ - (void)testShouldNotSuspendTheMainQueueOnBaseURLChangeWhenReachabilityHasBeenEs
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 {
NSLog(@"PENDING ---> FIX ME!!!");
return;
Please sign in to comment.
Something went wrong with that request. Please try again.