active_model_serializers/test
Benjamin Fleischer 509221c1e0 Only call railtie when Rails is defined; assume controller loaded
Isolated Testing

- Rake test inspired by https://github.com/rails/rails/blob/v5.0.0.beta1/activejob/Rakefile
- Isolated unit inspired by
  - https://github.com/rails/rails/blob/v5.0.0.beta1/railties/test/isolation/abstract_unit.rb
  - https://github.com/rails/rails/blob/v5.0.0.beta1/activemodel/test/cases/railtie_test.rb

Misc

- Turns out `mattr_accessor(:logger) {
  ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT)) }`
  was always nil until the Railtie was loaded, since mattr_accessor
  block defaults don't really work on modules, but on the classes that
  include them.
- Commented on important on Rails being required first for caching to
  work.
- In isolated tests, `active_support/core_ext/object/with_options` is required.
2016-01-15 01:54:07 -06:00
..
action_controller Add support for JSON API deserialization (experimental). 2016-01-13 05:48:06 +01:00
active_model_serializers Only call railtie when Rails is defined; assume controller loaded 2016-01-15 01:54:07 -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 Only load generators when needed 2016-01-15 01:52:27 -06: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 Only call railtie when Rails is defined; assume controller loaded 2016-01-15 01:54:07 -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 Collect more Rails initialization code in the Railtie 2016-01-15 01:52:27 -06:00