test/support/integration_helpers.rb
def sign_in(user, session = integration_session)
    session.post new_user_session_path, params: {
      user: {
        email: user.email,
        password: user.password,
      },
    }
  end
# login the user.  This will exercise all the Warden Hooks
# @param user [User]
# @param session [ActionDispatch::Integration::Session]
# @return [void]
login the user.  This will exercise all the Warden Hooks
login the user . This will exercise all the Warden Hooks
def sign_in(user, session = integration_session)
    session.post new_user_session_path, params: {
      user: {
        email: user.email,
        password: user.password,
      },
    }
  end
def sign_in ( user , session = integration_session ) session . post new_user_session_path , params : { user : { email : user . email , password : user . password , } , } end
login the user.
login the user .
None
void
user
session
integration_session
None