diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-06-05 15:11:44 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-06-05 15:11:44 +0200 |
commit | 1c39310637599df879c0412672f35d3990b61afb (patch) | |
tree | d29b6d709565e694c178b3668abc4497fd6778c4 /actionpack | |
parent | bb8b2141844872c94141091ffe3b45505fb3b4db (diff) | |
parent | 6a75e2ce1033669f99aed6f1f8295c138edb4d47 (diff) | |
download | rails-1c39310637599df879c0412672f35d3990b61afb.tar.gz rails-1c39310637599df879c0412672f35d3990b61afb.tar.bz2 rails-1c39310637599df879c0412672f35d3990b61afb.zip |
Merge pull request #15525 from zuhao/refactor_actionpack_query_string_parsing_test
Avoid hardcoded value in test setup/teardown.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/request/query_string_parsing_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/request/query_string_parsing_test.rb b/actionpack/test/dispatch/request/query_string_parsing_test.rb index d82493140f..4e99c26e03 100644 --- a/actionpack/test/dispatch/request/query_string_parsing_test.rb +++ b/actionpack/test/dispatch/request/query_string_parsing_test.rb @@ -105,6 +105,7 @@ class QueryStringParsingTest < ActionDispatch::IntegrationTest end test "perform_deep_munge" do + old_perform_deep_munge = ActionDispatch::Request::Utils.perform_deep_munge ActionDispatch::Request::Utils.perform_deep_munge = false begin assert_parses({"action" => nil}, "action") @@ -115,7 +116,7 @@ class QueryStringParsingTest < ActionDispatch::IntegrationTest assert_parses({"action" => {"foo" => [{"bar" => nil}]}}, "action[foo][][bar]") assert_parses({"action" => ['1',nil]}, "action[]=1&action[]") ensure - ActionDispatch::Request::Utils.perform_deep_munge = true + ActionDispatch::Request::Utils.perform_deep_munge = old_perform_deep_munge end end |