Files
timeoverflow/spec/support/features/session_helpers.rb
2020-02-23 18:09:40 +01:00

11 lines
242 B
Ruby

module Features
module SessionHelpers
def sign_in_with(email, password)
visit '/login'
fill_in 'user_email', with: email
fill_in 'user_password', with: password
find('input[type=submit]').click
end
end
end