aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-09-18 13:52:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-09-18 13:52:30 -0700
commit05b08f295251583cb6ac51ed0075e5d77fdd830c (patch)
tree9a2ab640448f2c54fe91fb7cc2b0addf59aadbf4 /actionpack
parent8db2e67c0ab5560314a8e26d93e5fa1eeda5a1fa (diff)
downloadrails-05b08f295251583cb6ac51ed0075e5d77fdd830c.tar.gz
rails-05b08f295251583cb6ac51ed0075e5d77fdd830c.tar.bz2
rails-05b08f295251583cb6ac51ed0075e5d77fdd830c.zip
remove setting request parameters for JSON requests
The request object will automatically parse these in the `parse_formatted_parameters` method, so we don't have to worry about it.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/test_case.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index fbbaa1a887..c2f07b2373 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -83,8 +83,6 @@ module ActionController
raise "Unknown Content-Type: #{content_type}"
when :json
data = ActiveSupport::JSON.encode(non_path_parameters)
- params = ActiveSupport::JSON.decode(data).with_indifferent_access
- self.request_parameters = params
when :xml
data = non_path_parameters.to_xml
params = Hash.from_xml(data)['hash']