Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RKPathMatcher Test
- (void)testAddedTest
NSDictionary *arguments = nil;
RKPathMatcher *pathMatcher = [RKPathMatcher pathMatcherWithPattern:@"/api/v1/organizations"];
BOOL isMatchingPattern = [pathMatcher matchesPath:@"/api/v1/organizations?name__icontains=t" tokenizeQueryStrings:YES parsedArguments:&arguments];
assertThatBool(isMatchingPattern, is(equalToBool(YES)));
assertThat(arguments, isNot(empty()));
assertThat(arguments, hasEntries(@"name__icontains", @"t",nil));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.