aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/params_wrapper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/params_wrapper_test.rb')
-rw-r--r--actionpack/test/controller/params_wrapper_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/controller/params_wrapper_test.rb b/actionpack/test/controller/params_wrapper_test.rb
index ae4ad8eb9c..6c011b98f2 100644
--- a/actionpack/test/controller/params_wrapper_test.rb
+++ b/actionpack/test/controller/params_wrapper_test.rb
@@ -31,6 +31,13 @@ class ParamsWrapperTest < ActionController::TestCase
end
end
+ def test_derived_name_from_controller_given_an_anonymous_controller
+ with_default_wrapper_options do
+ # This should not raise an error.
+ Class.new(UsersController)
+ end
+ end
+
def test_specify_wrapper_name
with_default_wrapper_options do
UsersController.wrap_parameters :person