diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-09 19:27:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-10 14:19:10 -0700 |
commit | 0adb8f8fa6b99784079750e413659e6b93dbbe51 (patch) | |
tree | 87164eaaf6fd746bd82427bbcf63f374525d4409 /actionpack/lib | |
parent | 11bc0789281760267730e0cae63bba5d7e566152 (diff) | |
download | rails-0adb8f8fa6b99784079750e413659e6b93dbbe51.tar.gz rails-0adb8f8fa6b99784079750e413659e6b93dbbe51.tar.bz2 rails-0adb8f8fa6b99784079750e413659e6b93dbbe51.zip |
Parameters are converted to a query string
Since parameters are converted to a query string, they will
automatically be turned in to strings by the query parser
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 6d362a9fd8..389c470456 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -414,19 +414,6 @@ module ActionController end alias xhr :xml_http_request - def paramify_values(hash_or_array_or_value) - case hash_or_array_or_value - when Hash - Hash[hash_or_array_or_value.map{|key, value| [key, paramify_values(value)] }] - when Array - hash_or_array_or_value.map {|i| paramify_values(i)} - when Rack::Test::UploadedFile, ActionDispatch::Http::UploadedFile - hash_or_array_or_value - else - hash_or_array_or_value.to_param - end - end - # Simulate a HTTP request to +action+ by specifying request method, # parameters and set/volley the response. # @@ -486,10 +473,6 @@ module ActionController parameters ||= {} - # Ensure that numbers and symbols passed as params are converted to - # proper params, as is the case when engaging rack. - parameters = paramify_values(parameters) if html_format?(parameters) - if format.present? parameters[:format] = format end |