Created
March 18, 2012 09:35
-
-
Save yulrizka/2070183 to your computer and use it in GitHub Desktop.
Helper for login in sorcery on request spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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