summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Tucker <raggi@google.com>2012-12-29 15:28:25 -0500
committerJames Tucker <raggi@google.com>2012-12-29 15:28:56 -0500
commit8adaab4b6548fe323eb17943eece172c1bb445c0 (patch)
treeadd3e9d1d6d703389b12cff797a0365c30f8b164 /test
parent84b4a9f276c34318f7a76734f16a09aedc58b1c9 (diff)
downloadrack-8adaab4b6548fe323eb17943eece172c1bb445c0.tar.gz
Do not fail on cookies that are not URI escaped
* Closes #360
Diffstat (limited to 'test')
-rw-r--r--test/spec_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_request.rb b/test/spec_request.rb
index ac82228d..dc101cbf 100644
--- a/test/spec_request.rb
+++ b/test/spec_request.rb
@@ -508,9 +508,9 @@ describe Rack::Request do
req2.params.should.equal({})
end
- should "raise any errors on every request" do
+ should "pass through non-uri escaped cookies as-is" do
req = Rack::Request.new Rack::MockRequest.env_for("", "HTTP_COOKIE" => "foo=%")
- 2.times { proc { req.cookies }.should.raise(ArgumentError) }
+ req.cookies["foo"].should == "%"
end
should "parse cookies according to RFC 2109" do