From 05b08f295251583cb6ac51ed0075e5d77fdd830c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 18 Sep 2015 13:52:30 -0700 Subject: 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. --- actionpack/lib/action_controller/test_case.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'actionpack') 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'] -- cgit v1.2.3