Permalink
Browse files

Merge pull request #66 from pdg137/bettertest

Better test to ensure that query strings are not being rewritten.
  • Loading branch information...
2 parents 5080d1e + c14ce34 commit 565278929a5084991935dd6d017d0be3197f9506 @brynary committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/rack/test_spec.rb
View
4 spec/rack/test_spec.rb
@@ -123,8 +123,8 @@
end
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"
end
it "accepts params and builds url encoded params for POST requests" do

0 comments on commit 5652789

Please sign in to comment.