test/support/integration_helpers.rb in devise-security-0.17.0 vs test/support/integration_helpers.rb in devise-security-0.18.0

- old
+ new

@@ -4,26 +4,32 @@ # 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, - }, - } + 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', - }, - } + session.post( + new_user_session_path, + params: { + user: { + email: user.email, + password: 'bad-password' + } + } + ) end end