From 7b452f64c9167ec9e507af5a9d1755f021916696 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 24 Feb 2011 19:28:40 +0000 Subject: Check that full error message is being displayed without interpolated attribute name. --- spec/controllers/user_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/controllers/user_controller_spec.rb') diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index 94d064a49..90f90860a 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -144,7 +144,7 @@ describe UserController, "when signing up" do post :signup, { :user_signup => { :email => 'new@localhost', :name => 'New Person', :password => 'sillypassword', :password_confirmation => 'sillypasswordtwo' } } - assigns[:user_signup].errors[:password].should_not be_nil + assigns[:user_signup].errors[:password].should == 'Please enter the same password twice' end it "should be an error to sign up with a misformatted email" do -- cgit v1.2.3