Sha256: f32c34d9270821bcff6bbf14bc419959dcc26ad4f81e3c67c7526d0b9f3aa2e1
Contents?: true
Size: 539 Bytes
Versions: 18
Compression:
Stored size: 539 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 = FactoryGirl.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
18 entries across 18 versions & 1 rubygems