diff options
author | Dmitry Vorotilin <d.vorotilin@gmail.com> | 2012-04-29 19:16:32 +0400 |
---|---|---|
committer | Dmitry Vorotilin <d.vorotilin@gmail.com> | 2012-07-05 15:47:04 +0400 |
commit | ffdca21e4489967abcc709333c4835ee45059337 (patch) | |
tree | 3605e906a195a588af40b7dd8383be71a1fa8655 /actionpack/test | |
parent | 7faa620fd697fe7323487e893596bc761e8d8b33 (diff) | |
download | rails-ffdca21e4489967abcc709333c4835ee45059337.tar.gz rails-ffdca21e4489967abcc709333c4835ee45059337.tar.bz2 rails-ffdca21e4489967abcc709333c4835ee45059337.zip |
Show in log correct wrapped keys
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/params_wrapper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/params_wrapper_test.rb b/actionpack/test/controller/params_wrapper_test.rb index fa1608b9df..5b05f77045 100644 --- a/actionpack/test/controller/params_wrapper_test.rb +++ b/actionpack/test/controller/params_wrapper_test.rb @@ -37,6 +37,14 @@ class ParamsWrapperTest < ActionController::TestCase UsersController.last_parameters = nil end + def test_filtered_parameters + with_default_wrapper_options do + @request.env['CONTENT_TYPE'] = 'application/json' + post :parse, { 'username' => 'sikachu' } + assert_equal @request.filtered_parameters, { 'controller' => 'params_wrapper_test/users', 'action' => 'parse', 'username' => 'sikachu', 'user' => { 'username' => 'sikachu' } } + end + end + def test_derived_name_from_controller with_default_wrapper_options do @request.env['CONTENT_TYPE'] = 'application/json' |