Sha256: 26fe0e13e337d7fb7e9c60a922379ff29608c781f846318dcb7c5bd2e2a9ef80

Contents?: true

Size: 393 Bytes

Versions: 30

Compression:

Stored size: 393 Bytes

Contents

module AuthenticationHelpers
  def sign_in_as!(user)
    visit '/login'
    fill_in 'Email', with: user.email
    fill_in 'Password', with: 'secret'
    click_button 'Login'
  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

30 entries across 30 versions & 3 rubygems

Version Path
spree_auth_devise-4.0.1 spec/support/authentication_helpers.rb
spree_auth_devise-4.0.0 spec/support/authentication_helpers.rb
spree_auth_devise-4.0.0.rc2 spec/support/authentication_helpers.rb
spree_auth_devise-4.0.0.rc1 spec/support/authentication_helpers.rb
spree_auth_devise-3.5.2 spec/support/authentication_helpers.rb
solidus_auth_devise-2.2.0 spec/support/authentication_helpers.rb
spree_auth_devise-3.5.1 spec/support/authentication_helpers.rb
spree_auth_devise-3.5.0 spec/support/authentication_helpers.rb
solidus_auth_devise_devise_token_auth-2.1.0.5 spec/support/authentication_helpers.rb
solidus_auth_devise_devise_token_auth-2.1.0.4 spec/support/authentication_helpers.rb
solidus_auth_devise_devise_token_auth-2.1.0.3 spec/support/authentication_helpers.rb
solidus_auth_devise_devise_token_auth-2.1.0.2 spec/support/authentication_helpers.rb
solidus_auth_devise_devise_token_auth-2.1.0.1 spec/support/authentication_helpers.rb
solidus_auth_devise_devise_token_auth-2.1.0 spec/support/authentication_helpers.rb
spree_auth_devise-3.4.2 spec/support/authentication_helpers.rb
spree_auth_devise-3.4.1 spec/support/authentication_helpers.rb
spree_auth_devise-3.4.0 spec/support/authentication_helpers.rb
spree_auth_devise-3.3.3 spec/support/authentication_helpers.rb
solidus_auth_devise-2.1.0 spec/support/authentication_helpers.rb
solidus_auth_devise-2.0.0 spec/support/authentication_helpers.rb