Created
October 30, 2019 02:52
-
-
Save balvig/d26c21e9c8f2ba32156280f32ad44b71 to your computer and use it in GitHub Desktop.
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
test “Successful login” do | |
user = User.create!(name: "name", password: "password") | |
visit root_path | |
click_on "Get started" | |
fill_in :name, with: "name" | |
fill_in :password, with: "password" | |
click_on "Log in" | |
assert_text "Welcome back!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment