mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Move Rails.application.config into configure block for test rails app.
This commit is contained in:
parent
7b9d71e99b
commit
e7c79b1f49
@ -1,7 +1,5 @@
|
||||
require 'test_helper'
|
||||
|
||||
Rails.application.config.filter_parameters += [:password]
|
||||
|
||||
module ActiveModelSerializers
|
||||
module Test
|
||||
class SchemaTest < ActionController::TestCase
|
||||
|
||||
@ -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' }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user