aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorDmitry Vorotilin <d.vorotilin@gmail.com>2012-04-29 19:16:32 +0400
committerDmitry Vorotilin <d.vorotilin@gmail.com>2012-05-20 09:33:56 +0400
commit32a433e1c04264b891a4b4793ac0c75f0acaf9df (patch)
treef76eb7199aecc4bdca288a42c938d896bce3d11b /actionpack/test/controller
parentda97cf016a8ffd1f54f804cd881f393e5d6efc18 (diff)
downloadrails-32a433e1c04264b891a4b4793ac0c75f0acaf9df.tar.gz
rails-32a433e1c04264b891a4b4793ac0c75f0acaf9df.tar.bz2
rails-32a433e1c04264b891a4b4793ac0c75f0acaf9df.zip
Show in log correct wrapped keys
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/params_wrapper_test.rb8
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'