Sha256: 02fc4fb1a89bceb20beca8ab5b8bd6a4f2c82d420346cc1e157c356ea09a5666

Contents?: true

Size: 326 Bytes

Versions: 24

Compression:

Stored size: 326 Bytes

Contents

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

RSpec.configure do |config|
  config.include AuthenticationHelpers, type: :feature
  config.include Rack::Test::Methods, type: :feature
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
spree_dev_tools-0.2.4 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.2.3 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.2.2 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.2.1 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.2.0 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.12 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.11 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.10 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.9 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
harpiya_dev_tools-0.1.8 lib/harpiya_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.8 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.7 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.5 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.4 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.3 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.2 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.1 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.1.0 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.0.9 lib/spree_dev_tools/rspec/support/authentication_helpers.rb
spree_dev_tools-0.0.8 lib/spree_dev_tools/rspec/support/authentication_helpers.rb