westfieldlabs / apivore

Tests your rails API against its Swagger description of end-points, models, and query parameters.
Apache License 2.0
213 stars 66 forks source link

Better debugging and response access #68

Closed hornc closed 8 years ago

hornc commented 8 years ago

This makes the last response available on the SwaggerChecker, the subject of the tests.

This will help with debugging, and enable expect(subject.response).to <something> additional verifications, perhaps to ensure a response is not empty and trivially passing the json schema validations.