active_model_serializers/lib/active_model_serializers
Mauro George c0b99c980c Bring back assert_serializer for controller testing
The `assert_serializer` test helper was added in 0.9.0.apha1[1],
and was not included in 0.10.

This patch brings back the `assert_serializer` test helper. This is the last
revision[2] that has the helper. The original helper was used as base.

[1]: https://github.com/rails-api/active_model_serializers/pull/596
[2]: 610aeb2e92

- Create the AssertSerializer

- Use the Test namespace

- Make the tests pass on the Rails master
  - Rails 5 does not include `assert_template` but we need this on the tests of
the helper.
  - This add the `rails-controller-testing` to keep support on `assert_template`.

- Only load test helpers in the test environment
2016-01-13 20:54:22 -06:00
..
test Bring back assert_serializer for controller testing 2016-01-13 20:54:22 -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 Fix typo 2015-11-24 07:22:59 -08: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 Bring back assert_serializer for controller testing 2016-01-13 20:54:22 -06:00