mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
Use Rails::Application#initialize! instead of Rails::Engine#load_generators in integration tests.
9 lines
171 B
Ruby
9 lines
171 B
Ruby
class TestApp < Rails::Application
|
|
if Rails.version.to_s.first >= '4'
|
|
config.eager_load = false
|
|
config.secret_key_base = 'abc123'
|
|
end
|
|
end
|
|
|
|
TestApp.initialize!
|