Created
March 25, 2012 23:21
-
-
Save AVGP/2201424 to your computer and use it in GitHub Desktop.
This file contains 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 "Users" do | |
describe "Sign up" do | |
describe "with invalid data" do | |
it "should not create user" do | |
lambda do | |
visit signup_path | |
fill_in "Name", :with => "" | |
fill_in "Email", :with => "" | |
fill_in "Password", :with => "" | |
fill_in "Confirm password", :with => "" | |
click_button | |
response.should render_template('new') | |
response.should have_selector("div.error") | |
end.should_not change(User, :count) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment