active_model_serializers/test
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
..
action_controller Add support for JSON API deserialization (experimental). 2016-01-13 05:48:06 +01:00
active_model_serializers Create assert_response_schema test helper 2016-01-15 00:45:56 -06:00
adapter Add support for JSON API deserialization (experimental). 2016-01-13 05:48:06 +01:00
fixtures Remove outdated regression test 2016-01-13 21:47:08 -06:00
generators Remove space in {} 2015-09-03 20:55:40 -05:00
include_tree Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
serializers Add tests for conditional attributes/associations. 2016-01-13 06:20:05 +01:00
support Create assert_response_schema test helper 2016-01-15 00:45:56 -06:00
active_record_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
adapter_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
array_serializer_test.rb Tidy up the tests 2016-01-07 11:21:19 -08:00
collection_serializer_test.rb Tidy up the tests 2016-01-07 11:21:19 -08:00
grape_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
lint_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
logger_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
poro_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
serializable_resource_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
test_helper.rb Remove warning capture; more trouble than worth 2016-01-11 23:48:40 -06:00