Browse files

Better test to ensure that query strings are not being rewritten. The…

… previous version of this test would pass on revision 8153c07 with Ruby 1.9 due to ordered hashes; this one checks both argument order and URL-encoding.
  • Loading branch information...
1 parent 5080d1e commit c14ce34fc38103e1a42599c9a1a58d28d8edcd3c @pdg137 committed Sep 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/rack/test_spec.rb
4 spec/rack/test_spec.rb
@@ -123,8 +123,8 @@
it "does not rewrite a GET query string when :params is not supplied" do
- request "/foo?a=1&b=2&c=3&e=4&d=5"
- last_request.query_string.should == "a=1&b=2&c=3&e=4&d=5"
+ request "/foo?a=1&b=2&c=3&e=4&d=5+%20"
+ last_request.query_string.should == "a=1&b=2&c=3&e=4&d=5+%20"
it "accepts params and builds url encoded params for POST requests" do

0 comments on commit c14ce34

Please sign in to comment.