Sha256: 1160d7dae8c2453836c14bbdb3f610785a95086c999dd42761ccef7b75d82eb6
Contents?: true
Size: 431 Bytes
Versions: 36
Compression:
Stored size: 431 Bytes
Contents
# spec/support/features/session_helpers.rb module Features module SessionHelpers def sign_in(who = :user) logout user = who.is_a?(User) ? who : FactoryGirl.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
36 entries across 36 versions & 3 rubygems