Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Given /^I have a valid account$/ do
- @current_email = 'my@email.com'
- @current_password = 'candles'
- @current_user = FactoryGirl.create(:user, :email => @current_email, :password => @current_password)
- end
- Then /^I should be able to login$/ do
- visit new_user_session_path
- fill_in_my_details
- click_button 'Sign in'
- page.should have_content 'Signed in'
- end
Add Comment
Please, Sign In to add comment