Skip to content

Commit

Permalink
Can only set cookies on a page (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew McGarvey <tnraptor14@hotmail.com>
  • Loading branch information
matthewmcgarvey and Matthew McGarvey committed May 29, 2020
1 parent b00a8d8 commit 0afe110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/lucky_flow_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ describe LuckyFlow do
end

it "can reset the session" do
flow = LuckyFlow.new
flow = visit_page_with <<-HTML
<h1>Title</h1>
HTML
flow.session.cookie_manager.add_cookie("hello", "world")
flow.session.cookie_manager.get_cookie("hello").value.should eq "world"

Expand Down

0 comments on commit 0afe110

Please sign in to comment.