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

FEATURE [RTLR-194] make error messages clearer #32

Closed hornc closed 9 years ago

hornc commented 9 years ago

https://jira.westfieldlabs.com/browse/RTLR-194

Changing error output from:

Failure/Error: expect(response.body).to conform_to_the_documented_model_for(swagger, fragment)
        '#/0' contained undefined properties: 'name'

to

    Failure/Error: expect(response.body).to conform_to_the_documented_model_for(swagger, fragment)
        '/api/services.json#/0' contained undefined properties: 'name'

to make it clearer that it is a json ref path in a particular response, because the '#/' doesn't seem very meaningful by itself. Is this an improvement on the above?

adamcohen commented 9 years ago

LGTM