Skip to content

Commit e7c79b1

Browse files
committed
Move Rails.application.config into configure block for test rails app.
1 parent 7b9d71e commit e7c79b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/active_model_serializers/test/schema_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
require 'test_helper'
22

3-
Rails.application.config.filter_parameters += [:password]
4-
53
module ActiveModelSerializers
64
module Test
75
class SchemaTest < ActionController::TestCase

test/support/rails_app.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module ActiveModelSerializers
66
config.active_support.test_order = :random
77
config.action_controller.perform_caching = true
88
config.action_controller.cache_store = :memory_store
9+
10+
config.filter_parameters += [:password]
911
end
1012

1113
app.routes.default_url_options = { host: 'example.com' }

0 commit comments

Comments
 (0)