Skip to content

Instantly share code, notes, and snippets.

@mohhasbias
Created January 17, 2013 10:19
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 mohhasbias/4555070 to your computer and use it in GitHub Desktop.
Save mohhasbias/4555070 to your computer and use it in GitHub Desktop.
require "spec_helper"
describe "user registration" do
it "allows new users to register with an email address and password" do
visit "/users/sign_up"
fill_in "Email", :with => "alindeman@example.com"
fill_in "Password", :with => "ilovegrapes"
fill_in "Password confirmation", :with => "ilovegrapes"
click_button "Sign up"
page.should have_content("Welcome! You have signed up successfully.")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment