Permalink
Browse files

spec_rack_utils.rb - Added another test for parse_query

darcs-hash:20080502210443-ae511-f576d102054346ba797d99b8589a3b8a43cef51f.gz
  • Loading branch information...
1 parent 1114691 commit 7093ed454ff809a0e2dbdd2c436b62332818eec2 @qerub qerub committed May 2, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/spec_rack_utils.rb
View
@@ -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

0 comments on commit 7093ed4

Please sign in to comment.