diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2018-06-11 09:32:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-11 09:32:27 +0900 |
commit | 4eb1481c7f66a5c378b218676ece43b8ae13e553 (patch) | |
tree | c672a827ac578099e8d904dd75f499621decc92a /actionpack/lib/action_controller | |
parent | a81d47aa413bb31b06b1b8b22411a49a2b119a0e (diff) | |
parent | e4e1b62007fe40c4277ebc30067837a91bf25967 (diff) | |
download | rails-4eb1481c7f66a5c378b218676ece43b8ae13e553.tar.gz rails-4eb1481c7f66a5c378b218676ece43b8ae13e553.tar.bz2 rails-4eb1481c7f66a5c378b218676ece43b8ae13e553.zip |
Merge pull request #33093 from rails/use-rack-to-dump-query
Use Rack to generate query information under test
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 5d784ceb31..33b0bcbefe 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -109,7 +109,7 @@ module ActionController when :xml data = non_path_parameters.to_xml when :url_encoded_form - data = non_path_parameters.to_query + data = Rack::Utils.build_nested_query(non_path_parameters) else @custom_param_parsers[content_mime_type.symbol] = ->(_) { non_path_parameters } data = non_path_parameters.to_query |