Skip to content
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

Add data support for stubbed error responses. #92

Merged
merged 2 commits into from
Jan 7, 2015
Merged

Add data support for stubbed error responses. #92

merged 2 commits into from
Jan 7, 2015

Conversation

steam
Copy link
Contributor

@steam steam commented Jan 2, 2015

This PR adds the ability to stub data when testing errors. In production many of our errors have structured data. This allows unit tests to account for them. (Thanks for all the hard work on Moya, we are very happy with it so far.)

@ashfurrow
Copy link
Member

Awesome! Thanks so much, @steam!

The CI failure is not your fault – I'll get it fixed up ASAP. Could you write a quick test or two on your end for the new NSData associated value?

@steam
Copy link
Contributor Author

steam commented Jan 7, 2015

I saw you got the CI failure fixed. Nice work! I've added a spec for the stubbed nsdata error. Should be good to go. Thanks!

@ashfurrow
Copy link
Member

Nah, not fixed yet, but this looks awesome! 🍻

ashfurrow added a commit that referenced this pull request Jan 7, 2015
Add data support for stubbed error responses.
@ashfurrow ashfurrow merged commit 5e36500 into Moya:master Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants