Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Forked from david/signup.feature.md
Last active December 18, 2015 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save practicingruby/5788393 to your computer and use it in GitHub Desktop.
Save practicingruby/5788393 to your computer and use it in GitHub Desktop.

When a user signs up successfully, they will be sent to the dashboard. We will send them an email confirming the sign up.

test "A successful signup" do
  simulated_user.visit do
    sign_up(email: "guybush@threepwood.com",
            name:  "Guybush Threepwood",
            password: "ilikerootbeer")

    current_page.is("/dashboard")
    inbox.has_message(subject: "Welcome to the Frobinator!")
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment