search for: profile_ron

Displaying 1 result from an estimated 1 matches for "profile_ron".

Did you mean: profile_ios
2005 Jul 13
0
Testing failing
...dle hashing the password. My code is strait out of the book. The whole object is at the end of this email. I want to test to make sure the hashed_password gets written out to the database, so I wrote this test def test_password_hash @hash_pass = "something" @profile_ron.password = @hash_pass assert @profile_ron.save @profile_ron.reload assert_equal Digest::SHA1.hexdigest( @hash_pass ), @profile_ron.hashed_password end The problem is that @profile_ron.hashed_password never changes. I''ve put a bunch of logging and debugg...