Skip to content

Instantly share code, notes, and snippets.

@mhfs
Created November 13, 2009 20:54
Show Gist options
  • Select an option

  • Save mhfs/234148 to your computer and use it in GitHub Desktop.

Select an option

Save mhfs/234148 to your computer and use it in GitHub Desktop.
describe "As a visitor I want to be able to signup and login" do
it "should sign up with valid params" do
visit root_url
click_link "Sign Up"
fill_in "Name", :with => "Test User"
fill_in "Email", :with => "[email protected]"
fill_in "Password", :with => "123mudar"
fill_in "Password Confirmation", :with => "123mudar"
click_button "Save"
ActionMailer::Base.deliveries.length.should == 1
response.should contain "User was successfully created"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment