Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Response Headers don't overwrite cookies #217

@gabecoyne

Description

@gabecoyne
  • set initial cookie before request
    page.driver.set_cookie("user_id", 1)
  • controller sets cookies[:user_id] = 2
    visit "/change_user?user_id=2"
  • this passes - the right headers were sent back by rails app
    page.response_headers["Set-Cookie"].match("user_id=2").should_not be_nil
  • this fails, user_id cookie is still 1
    page.driver.cookies["user_id"].value.should == 2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions