What am I missing? Invalid schema passes tests #139
Unanswered
designvoid
asked this question in
Q&A
Replies: 2 comments
|
@designvoid I met same problem. I don't know why in detail, but I feel this problem relates to this issue, #183 |
0 replies
|
@designvoid Can you try using master branch ? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
My API categorically does not return errors in the correct
JSON:APIformat - I haven't written the code for it yet - trying to be a good TDD dev I have written a simple test that I know will cause an error to be returned (401 - not authorized).When I run the test:
I get all green
OK (1 test, 3 assertions)But I know the the errors look like this:
{ "title": "A property with the given address could not be found", "code": 404 }And my spec looks like this:
Obviously it's correctly validating the 401 code but I would expect it to kick off about the structure of the response... or am I missing something?
Any thoughts/advice would be most welcome! :) TIA!
All reactions