From 29e8ca3698f470432e0a776be7d0b1d5c4e16389 Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Mon, 16 May 2011 12:30:36 -0500 Subject: add failing test for https://github.com/rails/rails/issues/1089 --- actionpack/test/controller/params_wrapper_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3