venuu / jsonapi-authorization

Authorization for JSONAPI::Resource
http://www.rubydoc.info/github/venuu/jsonapi-authorization
MIT License
132 stars 59 forks source link

Add better debuggability to be_X test failures #134

Closed valscion closed 4 years ago

valscion commented 4 years ago

This way test failures will show what the HTTP status code actually was when test fails as well as output the entire response body. The response body will most likely contain vital debugging information to help figure out why the test failed.

This was cherry-picked from a commit I did to https://github.com/venuu/jsonapi-authorization/pull/131 as this will be useful to all the future changes done to this gem.