Restful-authentication and unit tests


There are two unit tests in restful-authentication that fails for me
as User.authenticate returns nil

def test_should_reset_password
users(:quentin).update_attributes(:password =>
‘new_password’, :password_confirmation => ‘new_password’)
assert_equal users(:quentin), User.authenticate(‘quentin’,

def test_should_not_rehash_password
users(:quentin).update_attributes(:login => ‘quentin2’)
assert_equal users(:quentin), User.authenticate(‘quentin2’,

However, should it really be possible just to change password? At
least in the older version one had to generate at new user, I think.
That is the test should assert errors instead. The same holds for the
second test . Should it not assert errors instead of equal ?

Anyone that has had the same problem ?

Any help would be appreciated