-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
using .andFail with a status that isn't an error code #115
Comments
This is a funny one actually .. because I never thought anyone would do that .. but sure .. why not .. |
Yeah it's clearly a user error. But how would you prefer ember-data-factory-guy to handle this? Do you think it should throw an error when anything but an error status code is used? |
Yes, that would be the way to do it .. that way they see the error and tests stop right there. |
Ok cool. I won't have time to work on this anytime soon, but if it's not too late I can submit a PR in about two weeks. |
That is fine @ismay .. get to it when you can. |
v2.6.4 adds this check for only setting 4XX and 5XX values for status options on a |
When using:
the update doesn't fail if the status code isn't an error code. Now this makes sense, but it would help with debugging if
ember-data-factory-guy
threw an error when using status codes that aren't actual error status codes. I took quite some time to figure that this was why the request wasn't failing.@pgvandelden
The text was updated successfully, but these errors were encountered: