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