Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Helper for login in sorcery on request spec
# spec/support/sorcery_helper.rb
module Sorcery
module TestHelpers
module Rails
def login_user_post(user, password)
page.driver.post(sessions_url, { username: user, password: password})
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.