Skip to content

Commit

Permalink
Assert the cookie is secure (there were no tests for this).
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 12, 2012
1 parent 27234d7 commit aeb6ef1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/spec_session_cookie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def call(env)

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
Expand Down

0 comments on commit aeb6ef1

Please sign in to comment.