mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Improve test coverage for filter_parameters [José Valim]
This commit is contained in:
parent
8d37bd08ee
commit
1066b16237
1 changed files with 3 additions and 3 deletions
|
@ -42,8 +42,8 @@ class FilterParamTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_filter_parameters_is_protected
|
||||
FilterParamController.filter_parameter_logging
|
||||
assert !@controller.send!(:action_methods).include?(:filter_parameters)
|
||||
assert (begin @controller.filter_parameters rescue true end)
|
||||
FilterParamController.filter_parameter_logging(:foo)
|
||||
assert !FilterParamController.action_methods.include?('filter_parameters')
|
||||
assert !(begin @controller.filter_parameters([{'foo' => 'bar'}]) rescue false end)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue