Fix and test coverage for base URLs containing a path

This commit is contained in:
Blake Watters
2011-07-06 15:57:05 -04:00
parent 6376274900
commit c7d8d0db3b
2 changed files with 11 additions and 1 deletions

View File

@@ -53,5 +53,10 @@
assertThat([URL absoluteString], is(equalTo(@"http://restkit.org")));
}
- (void)itShouldHandleBaseURLsWithAPath {
RKURL* URL = [RKURL URLWithBaseURLString:@"http://restkit.org/this" resourcePath:@"/test" queryParams:nil];
assertThat([URL absoluteString], is(equalTo(@"http://restkit.org/this/test")));
}
@end