Module: AuthenticationHelpers

Defined in:
lib/spree_dev_tools/rspec/support/authentication_helpers.rb

Instance Method Summary collapse

Instance Method Details

#sign_in_as!(user) ⇒ Object



2
3
4
5
6
7
# File 'lib/spree_dev_tools/rspec/support/authentication_helpers.rb', line 2

def (user)
  visit '/login'
  fill_in 'Email', with: user.email
  fill_in 'Password', with: 'secret'
  click_button 'Log in'
end