active_model_serializers/lib/active_model/serializer
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
..
adapter Add support for JSON API deserialization (experimental). 2016-01-13 05:48:06 +01:00
adapter.rb Enforce Rails-style (line-count-based) block style 2015-09-21 00:00:53 -05:00
array_serializer.rb Test ArraySerializer less rigorously on Minitest 4 2015-11-08 23:12:56 -06:00
association.rb Rubocop: Consistent spacing 2015-09-03 20:51:40 -05:00
associations.rb Replace Field#included? with Field#excluded?. 2016-01-13 06:20:05 +01:00
attribute.rb Factor out ancestor class Field of Attribute and Reflection. 2016-01-13 06:20:04 +01:00
attributes.rb Replace Field#included? with Field#excluded?. 2016-01-13 06:20:05 +01:00
belongs_to_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
caching.rb Extract caching into its own module. 2015-12-28 02:53:49 +01:00
collection_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
collection_serializer.rb Rename ArraySerializer to CollectionSerializer for clarity 2015-10-21 16:53:26 -05:00
configuration.rb Add config.serializer_lookup_enabled that defaults true 2015-11-30 00:20:58 -06:00
field.rb Replace Field#included? with Field#excluded?. 2016-01-13 06:20:05 +01:00
fieldset.rb Initialize fieldset. 2015-10-25 19:56:43 +01:00
has_many_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
has_one_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
include_tree.rb Add test and bugfix to include an array of string 2015-11-06 17:23:25 +01:00
lint.rb Tidy up the tests 2016-01-07 11:21:19 -08:00
railtie.rb Bring back assert_serializer for controller testing 2016-01-13 20:54:22 -06:00
reflection.rb Factor out ancestor class Field of Attribute and Reflection. 2016-01-13 06:20:04 +01:00
singular_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
version.rb updating version to new release 2015-09-16 12:19:44 -03:00