aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/filter_params_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/filter_params_test.rb')
-rw-r--r--actionpack/test/controller/filter_params_test.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/actionpack/test/controller/filter_params_test.rb b/actionpack/test/controller/filter_params_test.rb
index 420ebeacf4..d0635669c2 100644
--- a/actionpack/test/controller/filter_params_test.rb
+++ b/actionpack/test/controller/filter_params_test.rb
@@ -66,18 +66,6 @@ class FilterParamTest < ActionController::TestCase
assert_raise(NoMethodError) { @controller.filter_parameters([{'password' => '[FILTERED]'}]) }
end
- def test_filter_parameters_inside_logs
- FilterParamController.filter_parameter_logging(:lifo, :amount)
-
- get :payment, :lifo => 'Pratik', :amount => '420', :step => '1'
- ActiveSupport::Notifications.notifier.wait
-
- filtered_params_logs = logs.detect {|l| l =~ /\AParameters/ }
- assert filtered_params_logs.index('"amount"=>"[FILTERED]"')
- assert filtered_params_logs.index('"lifo"=>"[FILTERED]"')
- assert filtered_params_logs.index('"step"=>"1"')
- end
-
private
def set_logger