Methods
Included Modules
Attributes
| [RW] | last_parameters |
Instance Public methods
parse()
Link
test_does_not_implicitly_wrap_params()
Link
# File actionpack/test/controller/params_wrapper_test.rb, line 303 def test_does_not_implicitly_wrap_params with_default_wrapper_options do @request.env['CONTENT_TYPE'] = 'application/json' post :parse, params: { 'username' => 'sikachu' } assert_parameters({ 'username' => 'sikachu' }) end end
test_does_wrap_params_if_name_provided()
Link
# File actionpack/test/controller/params_wrapper_test.rb, line 311 def test_does_wrap_params_if_name_provided with_default_wrapper_options do @controller.class.wrap_parameters(:name => "guest") @request.env['CONTENT_TYPE'] = 'application/json' post :parse, params: { 'username' => 'sikachu' } assert_parameters({ 'username' => 'sikachu', 'guest' => { 'username' => 'sikachu' }}) end end