summaryrefslogtreecommitdiff
path: root/test/spec_session_cookie.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-01-12 20:31:06 +0100
committerJosé Valim <jose.valim@gmail.com>2012-01-12 20:31:06 +0100
commitaeb6ef1406126aa4b58331ae7d7e52ffe33c5a0c (patch)
tree724a6caa28219569e3f61113c43585a7e9d17f46 /test/spec_session_cookie.rb
parent27234d7e48e8de724d77f4cc594c2edefa3d893f (diff)
downloadrack-aeb6ef1406126aa4b58331ae7d7e52ffe33c5a0c.tar.gz
Assert the cookie is secure (there were no tests for this).
Diffstat (limited to 'test/spec_session_cookie.rb')
-rw-r--r--test/spec_session_cookie.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/spec_session_cookie.rb b/test/spec_session_cookie.rb
index bb34ef6b..323294ca 100644
--- a/test/spec_session_cookie.rb
+++ b/test/spec_session_cookie.rb
@@ -220,6 +220,7 @@ describe Rack::Session::Cookie do
res = Rack::MockRequest.new(app).get("/", "HTTPS" => "on")
res["Set-Cookie"].should.not.be.nil
+ res["Set-Cookie"].should.match(/secure/)
end
it "does not return a cookie if cookie was not read/written" do