I have a number of Cucumber scripts that work with capybara in a project I'm working on.
Most of these scenarios begin with the step "Given that I am logged in." Currently my implementation is:
visit path_to('the login page') fill_in('Username', :with => 'user') fill_in('Password', :with => 'password') click_button('Login')
This works great, but it takes a little time to download and submit the login form before each script.
Is there a way to simply set up a session at this point without having to go through the form each time?
authlogic cucumber capybara
Alistairh
source share