Skip to content

Instantly share code, notes, and snippets.

@balvig
Created October 30, 2019 02:52
Show Gist options
  • Save balvig/d26c21e9c8f2ba32156280f32ad44b71 to your computer and use it in GitHub Desktop.
Save balvig/d26c21e9c8f2ba32156280f32ad44b71 to your computer and use it in GitHub Desktop.
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