Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

HotFix crash on stubRoute... in RestKit/Testing #1709

Merged
merged 1 commit into from

3 participants

@softfacade

Fix crash with exception

[SOCPattern valueForUndefinedKey:]: this class is not key value coding-compliant for the key parameters.string.

@segiddins segiddins merged commit 232f7f0 into RestKit:master
@segiddins
Owner

Didn't mean to merge... Stupid phone... Anyways, I think he's right @blakewatters

@blakewatters

Looks fine, all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Code/Testing/RKTestHelpers.m
View
2  Code/Testing/RKTestHelpers.m
@@ -80,7 +80,7 @@ + (void)copyFetchRequestBlocksMatchingPathPattern:(NSString *)pathPattern
// Extract the dynamic portions of the path pattern to construct a set of parameters
SOCPattern *pattern = [SOCPattern patternWithString:pathPattern];
- NSArray *parameterNames = [pattern valueForKey:@"parameters.string"];
+ NSArray *parameterNames = [pattern valueForKeyPath:@"parameters.string"];
NSMutableDictionary *stubbedParameters = [NSMutableDictionary dictionaryWithCapacity:[parameterNames count]];
for (NSString *parameter in parameterNames) {
[stubbedParameters setValue:@"value" forKey:parameter];
Something went wrong with that request. Please try again.