Sha256: 81c734f77f0fcd868b31aeac4f7da325bef95e3346bc5c1989ac1150873cc89a
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
# frozen_string_literal: true # spec/support/features/session_helpers.rb module Features module SessionHelpers def sign_in(who = :user) logout user = who.is_a?(User) ? who : build(:user).tap(&:save!) visit new_user_session_path fill_in 'Email', with: user.email fill_in 'Password', with: user.password click_button 'Log in' expect(page).not_to have_text 'Invalid email or password.' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-5.0.0 | spec/support/features/session_helpers.rb |
hyrax-5.0.0.rc3 | spec/support/features/session_helpers.rb |