@@ -144,7 +144,9 @@ class User < ActiveRecord::Base
|
|||||||
encrypted_password: "",
|
encrypted_password: "",
|
||||||
confirmation_token: nil,
|
confirmation_token: nil,
|
||||||
reset_password_token: nil,
|
reset_password_token: nil,
|
||||||
email_verification_token: nil
|
email_verification_token: nil,
|
||||||
|
confirmed_phone: nil,
|
||||||
|
unconfirmed_phone: nil
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -330,7 +330,9 @@ describe User do
|
|||||||
encrypted_password: "foobar",
|
encrypted_password: "foobar",
|
||||||
confirmation_token: "token1",
|
confirmation_token: "token1",
|
||||||
reset_password_token: "token2",
|
reset_password_token: "token2",
|
||||||
email_verification_token: "token3")
|
email_verification_token: "token3",
|
||||||
|
confirmed_phone:"5678",
|
||||||
|
unconfirmed_phone:"5678")
|
||||||
user.erase('a test')
|
user.erase('a test')
|
||||||
user.reload
|
user.reload
|
||||||
|
|
||||||
@@ -343,6 +345,8 @@ describe User do
|
|||||||
expect(user.unconfirmed_email).to be_nil
|
expect(user.unconfirmed_email).to be_nil
|
||||||
expect(user.document_number).to be_nil
|
expect(user.document_number).to be_nil
|
||||||
expect(user.phone_number).to be_nil
|
expect(user.phone_number).to be_nil
|
||||||
|
expect(user.confirmed_phone).to be_nil
|
||||||
|
expect(user.unconfirmed_phone).to be_nil
|
||||||
|
|
||||||
expect(user.encrypted_password).to be_empty
|
expect(user.encrypted_password).to be_empty
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user