Skip to content

Commit

Permalink
Assert config.filter_parameters should be able to be set in a initial…
Browse files Browse the repository at this point in the history
…izer
  • Loading branch information
rafaelfranca committed Jan 5, 2013
1 parent f17a631 commit 89979ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions railties/test/application/configuration_test.rb
Expand Up @@ -192,6 +192,16 @@ def teardown
end
end

test "filter_parameters should be able to set via config.filter_parameters in an initializer" do
app_file 'config/initializers/filter_parameters.rb', <<-RUBY
Rails.application.config.filter_parameters += [ :foo, 'bar' ]
RUBY

require "#{app_path}/config/environment"

assert_equal [:password, :foo, 'bar'], Rails.application.env_config['action_dispatch.parameter_filter']
end

test "config.to_prepare is forwarded to ActionDispatch" do
$prepared = false

Expand Down

0 comments on commit 89979ca

Please sign in to comment.