diff options
author | Evan Weaver <eweaver@twitter.com> | 2009-01-31 21:40:40 -0800 |
---|---|---|
committer | Evan Weaver <eweaver@twitter.com> | 2009-01-31 21:40:40 -0800 |
commit | d426c68c11d5733dd4462caafe92b28f436f30e7 (patch) | |
tree | 659c33e6abd2cebe4bd544996d36e9c58f83b0e4 /test | |
parent | cf4717de742266b4e62ad8bf075c6de974a73267 (diff) | |
download | unicorn-d426c68c11d5733dd4462caafe92b28f436f30e7.tar.gz |
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_http_parser.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb index c89cd0d..91482cd 100644 --- a/test/unit/test_http_parser.rb +++ b/test/unit/test_http_parser.rb @@ -157,22 +157,5 @@ class HttpParserTest < Test::Unit::TestCase end end - - - - def test_query_parse - res = HttpRequest.query_parse("zed=1&frank=#{HttpRequest.escape('&&& ')}") - assert res["zed"], "didn't get the request right" - assert res["frank"], "no frank" - assert_equal "1", res["zed"], "wrong result" - assert_equal "&&& ", HttpRequest.unescape(res["frank"]), "wrong result" - - res = HttpRequest.query_parse("zed=1&zed=2&zed=3&frank=11;zed=45") - assert res["zed"], "didn't get the request right" - assert res["frank"], "no frank" - assert_equal 4,res["zed"].length, "wrong number for zed" - assert_equal "11",res["frank"], "wrong number for frank" - end - end |