adding spec for password confirmation fail
This commit is contained in:
parent
fd88e24a55
commit
3fb2ee6e1b
1 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue