updating spec to fail if salt is not defined

This commit is contained in:
Mike McCabe
2013-10-09 13:18:32 -04:00
parent e999c02506
commit 82387a1f92
@@ -21,6 +21,9 @@ feature 'improper password hashing' do
@normal_user.password_confirmation = new_pass
@normal_user.save
pending(:if => verifying_fixed?) {Digest::MD5.hexdigest(@normal_user.salt + new_pass).should == @normal_user.password}
else
#fail test if salt attribute not defined
true.should == false
end
end
end