Sha256: 3d48d6320b3a424330b4aab6e0458ee7dcef4662b8075f1561c849c0f6e42c41

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

def sign_in_admin!(user)
  visit '/admin'
  fill_in 'Email', :with => user.email
  fill_in 'Password', :with => user.password
  click_button 'Login'
end

def sign_in_as!(user)
  visit '/login'
  fill_in 'Email', :with => user.email
  fill_in 'Password', :with => user.password
  click_button 'Login'
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spree_zaez_variants_labels-3.0.5 spec/support/capybara_helpers.rb
spree_zaez_brazilian_fields-3.1.0 spec/support/capybara_login.rb
spree_zaez_variants_labels-3.0.4 spec/support/capybara_helpers.rb
spree_zaez_brazilian_fields-3.0.1 spec/support/capybara_login.rb
spree_zaez_variants_labels-3.0.1 spec/support/capybara_helpers.rb