requireFile.dirname(__FILE__)+'/../spec_helper'describeUser," when authenticating"dobeforedo@user=User.newendit"should create a hashed password when the password is set"do@user.hashed_password.shouldbe_nil@user.password="a test password"@user.hashed_password.should_notbe_nilendend