From 3fb2ee6e1b833abb35ac77a6d1941a825762f9aa Mon Sep 17 00:00:00 2001 From: Raphael <raphael@joindiaspora.com> Date: Wed, 13 Oct 2010 16:28:56 -0700 Subject: [PATCH] adding spec for password confirmation fail --- spec/models/user_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index dfb0f685cc..8da51bc4a9 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -22,6 +22,20 @@ describe User do user.valid? user.username.should == "someuppercase" end + + it "confirms the password" do + pending "I cannot figure out why this doesn't work. --Raphael" + user = User.instantiate!( + :email => "tom@tom.joindiaspora.com", + :username => "tom", + :password => "evankorth", + :password_confirmation => "potatoes", + :person => Person.new( + :profile => Profile.new( :first_name => "Alexander", :last_name => "Hamiltom" )) + ) + user.created_at.should be_nil + user.valid?.should be_false + end end describe '#diaspora_handle' do -- GitLab