SHARE
TWEET

Untitled

a guest Aug 17th, 2018 1,199 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Given /^I have a valid account$/ do
  2.   @current_email = 'my@email.com'
  3.   @current_password = 'candles'
  4.   @current_user = FactoryGirl.create(:user, :email => @current_email, :password => @current_password)
  5. end
  6.  
  7. Then /^I should be able to login$/ do
  8.   visit new_user_session_path
  9.   fill_in_my_details
  10.   click_button 'Sign in'
  11.   page.should have_content 'Signed in'
  12. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top