active_model_serializers/test
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
..
action_controller Add support for JSON API deserialization (experimental). 2016-01-13 05:48:06 +01:00
active_model_serializers Bring back assert_serializer for controller testing 2016-01-13 20:54:22 -06:00
adapter Add support for JSON API deserialization (experimental). 2016-01-13 05:48:06 +01:00
fixtures Bring back assert_serializer for controller testing 2016-01-13 20:54:22 -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 Merge pull request #1371 from bf4/documentation_updates 2015-12-20 22:30:44 -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