Guest User

Untitled

a guest
Oct 27th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Given /I am logged in as a user/ do
  2. @current_user = User.create!(
  3. :name => 'quentin',
  4. :password => 'monkey'
  5. )
  6.  
  7. visits "/login"
  8. fills_in("login", :with => "quentin")
  9. fills_in("password", :with => "monkey")
  10. click("Log in")
  11. end
Add Comment
Please, Sign In to add comment