-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made automatic NSURL transfom to work even if JSONTransformerForKey method defined #685
Made automatic NSURL transfom to work even if JSONTransformerForKey method defined #685
Conversation
Thanks for the pull request, could you add some tests to that? |
if (transformer != nil) { | ||
result[key] = transformer; | ||
continue; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use tabs for indentation.
@robb heh, I'm new to Quick and Nimble test frameworks. Is it possible to test without new class declaration? |
Probably not, but be have a bunch of small test classes already that should offer a good starting point. |
@robb I've added test case, that fails on the old version and passes on the new :) |
…ways Made automatic NSURL transfom to work even if JSONTransformerForKey method defined
Thanks ✌ |
@robb, do you have any plans about next ( |
@dcaunt as Release-Cutter in Chief, would you mind cutting a point-release? 🙇 |
I've released 2.0.7 to avoid any confusion about 2.0.6. |
@dcaunt Thanks a lot! |
This works nice:
But this gives and NSURL transform error:
Solution is to add this line:
But I really like automatic NSURL/BOOL transforming. Why it should not work when method
JSONTransformerForKey:
is defined?