Created
December 8, 2017 02:13
-
-
Save webcoderph/02d13048af752feebedc237b71c13d8b to your computer and use it in GitHub Desktop.
Sign In Support Macro With Devise
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
module Features | |
def sign_in(user) | |
visit new_user_session_path | |
fill_in "Email", with: user.email | |
fill_in "Password", with: user.password | |
click_on "Log in" | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment