Module: Features::SessionHelpers
- Defined in:
- lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
Instance Method Summary collapse
Instance Method Details
#sign_up_with(email, password, confirmation) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb', line 3 def sign_up_with(email, password, confirmation) visit new_user_registration_path fill_in 'Email', with: email fill_in 'Password', with: password fill_in 'Password confirmation', :with => confirmation 'Sign up' end |
#signin(email, password) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb', line 11 def signin(email, password) visit new_user_session_path fill_in 'Email', with: email fill_in 'Password', with: password 'Sign in' end |