2011-08-11 91 views

回答

1

我一直在做的只是檢查對象是否響應身份驗證並具有password_digest字段。

test "user model has secure password" do 
    assert_respond_to @user, :password_digest 
    assert_respond_to @user, :authenticate, "User requires has_secure_password" 
end