From 1066b16237ad3287f236973748ccf721c1b0f2d8 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 14 May 2008 13:38:02 -0500 Subject: =?UTF-8?q?Improve=20test=20coverage=20for=20filter=5Fparameters?= =?UTF-8?q?=20[Jos=C3=A9=20Valim]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actionpack/test/controller/filter_params_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/filter_params_test.rb b/actionpack/test/controller/filter_params_test.rb index c9688b2063..af2b0e1ce4 100644 --- a/actionpack/test/controller/filter_params_test.rb +++ b/actionpack/test/controller/filter_params_test.rb @@ -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 -- cgit v1.2.3