Sha256: 1dc3075ef8a5348955508c0ec5c1cd5fc2f227d99534798faccf5b2a17356e94
Contents?: true
Size: 538 Bytes
Versions: 12
Compression:
Stored size: 538 Bytes
Contents
module Features module SessionHelpers def sign_up_with(email, password) visit new_user_registration_path fill_in 'Email', with: email fill_in 'Password', with: password click_button 'Sign up' end def sign_in user = FactoryBot.create(:user) user.save visit new_user_session_path fill_in 'user_email', with: user.email fill_in 'user_password', with: user.password click_button 'Log in' expect(page).to have_content 'Signed in successfully.' end end end
Version data entries
12 entries across 12 versions & 1 rubygems