Sha256: eb9289dcb63f69585f3c9abdd879e9b10d57393d50473458834c63667f247648
Contents?: true
Size: 792 Bytes
Versions: 2
Compression:
Stored size: 792 Bytes
Contents
# frozen_string_literal: true module IntegrationHelpers # login the user. This will exercise all the Warden Hooks # @param user [User] # @param session [ActionDispatch::Integration::Session] # @return [void] def sign_in(user, session = integration_session) session.post new_user_session_path, params: { user: { email: user.email, password: user.password, }, } end # attempt to login the user with a bad password. This will exercise all the Warden Hooks # @param user [User] # @param session [ActionDispatch::Integration::Session] # @return [void] def failed_sign_in(user, session) session.post new_user_session_path, params: { user: { email: user.email, password: 'bad-password', }, } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-security-0.17.0 | test/support/integration_helpers.rb |
devise-security-0.16.0 | test/support/integration_helpers.rb |