fixed test

This commit is contained in:
Mike Slemmer 2012-12-14 01:07:14 -08:00
parent 0a4e41e5d1
commit 81ebd4aa99
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ describe User do
end
it "setting a new password should fail if old one doesnt match" do
@user.set_password("wrongold", "newpassword", "newpassword").should_raise # This doesnt work.
expect { @user.set_password("wrongold", "newpassword", "newpassword") }.to raise_error
end
it "setting a new password should fail if new ones dont match" do