Sha256: 2fa5e95acb875fb5b8503a8bc1ff1596493b24400a030bb8529999ef5153107b
Contents?: true
Size: 589 Bytes
Versions: 14
Compression:
Stored size: 589 Bytes
Contents
# spec/support/features/session_helpers.rb module Features module SessionHelpers def sign_up_with(email, password) Capybara.exact = true visit new_user_registration_path fill_in 'Email', with: email fill_in 'Password', with: password fill_in 'Password confirmation', with: password click_button 'Sign up' end def sign_in(who = :user) user = FactoryGirl.create(who) visit new_user_session_path fill_in 'Email', with: user.email fill_in 'Password', with: user.password click_button 'Sign in' end end end
Version data entries
14 entries across 14 versions & 1 rubygems