aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/user_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2011-02-24 19:28:40 +0000
committerLouise Crow <louise.crow@gmail.com>2011-02-24 19:28:40 +0000
commit7b452f64c9167ec9e507af5a9d1755f021916696 (patch)
treeac58e48684579995be179de2fec0131de1d635bc /spec/controllers/user_controller_spec.rb
parent0dcb60361b3bf72c7b912be89066a23912fd3949 (diff)
Check that full error message is being displayed without interpolated attribute name.
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
-rw-r--r--spec/controllers/user_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
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