active_model_serializers/lib/active_model_serializers
Mauro George 5058694f4a Create assert_response_schema test helper
It is a common pattern to use JSON Schema to validate a API response[1], [2]
and [3].

This patch creates the `assert_response_schema` test helper that helps people do
this kind of validation easily on the controller tests.

[1]: https://robots.thoughtbot.com/validating-json-schemas-with-an-rspec-matcher
[2]: https://github.com/sharethrough/json-schema-rspec
[3]: https://github.com/rails-api/active_model_serializers/issues/1011#issuecomment-127608121
2016-01-15 00:45:56 -06:00
..
test Create assert_response_schema test helper 2016-01-15 00:45:56 -06:00
callbacks.rb Separate out callbacks per ActiveJob pattern 2015-11-10 03:09:24 -06:00
deserialization.rb Add support for JSON API deserialization (experimental). 2016-01-13 05:48:06 +01:00
logging.rb Surface logging event name for re-use 2016-01-13 21:47:08 -06:00
model.rb Add PORO serializable base class: ActiveModelSerializers::Model 2015-10-14 21:33:02 -05:00
serialization_context.rb rename context to serialization_context 2015-11-07 20:32:27 +01:00
test.rb Create assert_response_schema test helper 2016-01-15 00:45:56 -06:00