Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spec_rack_utils.rb - Added another test for parse_query

darcs-hash:20080502210443-ae511-f576d102054346ba797d99b8589a3b8a43cef51f.gz
  • Loading branch information...
commit 7093ed454ff809a0e2dbdd2c436b62332818eec2 1 parent 1114691
@qerub qerub authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  test/spec_rack_utils.rb
View
2  test/spec_rack_utils.rb
@@ -20,6 +20,8 @@
Rack::Utils.parse_query("foo=bar").should.equal "foo" => "bar"
Rack::Utils.parse_query("foo=bar&foo=quux").
should.equal "foo" => ["bar", "quux"]
+ Rack::Utils.parse_query("foo=1&bar=2").
+ should.equal "foo" => "1", "bar" => "2"
Rack::Utils.parse_query("my+weird+field=q1%212%22%27w%245%267%2Fz8%29%3F").
should.equal "my weird field" => "q1!2\"'w$5&7/z8)?"
end
Please sign in to comment.
Something went wrong with that request. Please try again.