Tuesday, December 14, 2010

[Rails] Cucumber + Capybara - web sessions

I need to do this:

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?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate