Sha256: d419cca2d64dc33f69eef1f281a0ef64ba4225f3f33fb4496ab869a3b4cef127

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 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 Devise::Test::ControllerHelpers, type: :controller
  config.include Rack::Test::Methods, type: :feature
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_auth_devise-4.1.1 spec/support/authentication_helpers.rb
spree_auth_devise-4.1.0 spec/support/authentication_helpers.rb
spree_auth_devise-4.1.0.rc1 spec/support/authentication_helpers.rb