Sha256: 593195ce6a11906214d004e2b28392b28efe2a0e6a26946876a71066f68d5f82
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
module ElabsMatchers module Helpers module Session ## # # Logs the user into the system. Requires that you login with an email and password # and that your fields are named a certain way # as well as there being a new_user_session path available. # # @param [Object] record The user record # # Example: # login_as(user) attr_reader :current_user def login_as(user) visit(new_user_session_path) fill_in('Email', :with => user.email) fill_in('Password', :with => user.password) click_button('Sign in') @current_user = user end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elabs_matchers-0.0.2 | lib/elabs_matchers/helpers/session.rb |
elabs_matchers-0.0.1 | lib/elabs_matchers/helpers/session.rb |