Scenario: Access private area without a session
Given I don’t have a session
When I access private area
Then I should see “You are not logged in”
Is there a way to remove the session cookie in “Given I don’t have a
session” with capybara?
I know I could visit the logout page, but what if I didn’t have this
feature yet?
When you say “It doesn’t work!” what error are you getting? Is session
defined? If not then do you have sessions turned off in the
ApplicationController? Have you established a session to start with?