Permalink
Browse files

Add missing test for parsing a multivalued query string

  • Loading branch information...
1 parent 3056059 commit 96687ad8a9430829910c2146959da15ef0ed016d @jeremy jeremy committed Feb 10, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 actionpack/test/controller/request_test.rb
@@ -471,6 +471,13 @@ def test_query_string_with_amps
)
end
+ def test_query_string_with_multiple_of_same_name
+ assert_equal(
+ { "action" => "update_order", "full_name" => "Lau Taarnskov", "products" => "4" },
+ ActionController::AbstractRequest.parse_query_parameters(@query_string_with_multiple_of_same_name)
+ )
+ end
+
def test_query_string_with_many_equal
assert_equal(
{ "action" => "create_customer", "full_name" => "abc=def=ghi"},

0 comments on commit 96687ad

Please sign in to comment.