Created
September 15, 2011 05:59
-
-
Save m3talsmith/1218645 to your computer and use it in GitHub Desktop.
test error
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
require 'spec_helper' | |
describe "Users" do | |
describe "signup" do | |
describe "failure" do | |
it "should not make a new user", :js => true do | |
visit new_user_registration_path | |
fill_in "Email", :with => "" | |
fill_in "Password", :with => "" | |
fill_in "Password confirmation", :with => "" | |
click_on "Sign up" | |
save_and_open_page | |
page.should have_content("Email can't be blank") | |
page.should have_content("Password can't be blank") | |
page.should have_content("Password confirmation can't be blank") | |
page.should have_selector("div#error_explanation") | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment