diff --git a/test/active_model_serializers/test/schema_test.rb b/test/active_model_serializers/test/schema_test.rb index 2a465114..105ac575 100644 --- a/test/active_model_serializers/test/schema_test.rb +++ b/test/active_model_serializers/test/schema_test.rb @@ -1,7 +1,5 @@ require 'test_helper' -Rails.application.config.filter_parameters += [:password] - module ActiveModelSerializers module Test class SchemaTest < ActionController::TestCase diff --git a/test/support/rails_app.rb b/test/support/rails_app.rb index 0bbae1fe..43324b78 100644 --- a/test/support/rails_app.rb +++ b/test/support/rails_app.rb @@ -6,6 +6,8 @@ module ActiveModelSerializers config.active_support.test_order = :random config.action_controller.perform_caching = true config.action_controller.cache_store = :memory_store + + config.filter_parameters += [:password] end app.routes.default_url_options = { host: 'example.com' }