aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorDavid Chelimsky <dchelimsky@gmail.com>2011-05-16 12:30:36 -0500
committerDavid Chelimsky <dchelimsky@gmail.com>2011-05-17 06:56:46 -0400
commit29e8ca3698f470432e0a776be7d0b1d5c4e16389 (patch)
treedaf7e43b3e20ddbeca1447e88701d93190428db5 /actionpack/test/controller
parentb0385fe1b2a147d982eadbeb716dd1c7598a93e0 (diff)
downloadrails-29e8ca3698f470432e0a776be7d0b1d5c4e16389.tar.gz
rails-29e8ca3698f470432e0a776be7d0b1d5c4e16389.tar.bz2
rails-29e8ca3698f470432e0a776be7d0b1d5c4e16389.zip
add failing test for https://github.com/rails/rails/issues/1089
Diffstat (limited to 'actionpack/test/controller')
-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