Skip to content

Instantly share code, notes, and snippets.

@m3talsmith
Created September 15, 2011 05:59
Show Gist options
  • Save m3talsmith/1218645 to your computer and use it in GitHub Desktop.
Save m3talsmith/1218645 to your computer and use it in GitHub Desktop.
test error
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