Sha256: 33039c592093e1fa860718cbfddc9abe6d5e19bd7ea48d13417fe9c8fcbbed90
Contents?: true
Size: 712 Bytes
Versions: 31
Compression:
Stored size: 712 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(login = 'user1') email = "#{login}@#{login}.com" user = User.create(:email => email, :password => "password", :password_confirmation => "password") visit new_user_session_path fill_in("user_email", :with => email) fill_in("user_password", :with => "password") click_button("Sign in") end end end
Version data entries
31 entries across 31 versions & 1 rubygems