ensl.org/spec/support/features/session_helpers.rb

10 lines
221 B
Ruby
Raw Normal View History

module Features
module SessionHelpers
def sign_in
visit root_path
user = create(:user)
fill_form(:user, { email: user.email, password: user.raw_password })
click_button 'ยป'
end
end
end