Sha256: 7c42b7e990b86a8477c8da6079c95ac67630fad0565d394e6477ec36a1b4f650

Contents?: true

Size: 424 Bytes

Versions: 12

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

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

12 entries across 12 versions & 1 rubygems

Version Path
solidus_auth_devise-2.5.9 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.8 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.7 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.6 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.5 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.4 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.3 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.2 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.1 spec/support/authentication_helpers.rb
solidus_auth_devise-2.5.0 spec/support/authentication_helpers.rb
solidus_auth_devise-2.4.0 spec/support/authentication_helpers.rb
solidus_auth_devise-2.3.0 spec/support/authentication_helpers.rb