Created
November 13, 2009 20:54
-
-
Save mhfs/234148 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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