Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: xlprojects
I've implemented a way to change the password (not reset the password) see here.
However I have trouble hooking up rspec tests for this bit of code... If anyone can help me out...
Here is how:
def update_password(current_password, new_password, new_password_confirmation)
if new_password == new_password_confirmation
if !User.authenticate(self.username, current_password).nil?
Same here, any luck solving the issue?