mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Load generators on test_helper and avoid repetead code
This commit is contained in:
@@ -11,11 +11,14 @@ Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
|
||||
|
||||
class Foo < Rails::Application
|
||||
if Rails.version.to_s.start_with? '4'
|
||||
config.eager_load = false
|
||||
config.secret_key_base = 'abc123'
|
||||
config.action_controller.perform_caching = true
|
||||
config.active_support.test_order = :random
|
||||
ActionController::Base.cache_store = :memory_store
|
||||
end
|
||||
end
|
||||
Foo.load_generators
|
||||
|
||||
require "active_model_serializers"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user