forked from AkkomaGang/akkoma
Test User with confirmation_pending: true, approval_pending: true
This commit is contained in:
parent
20d24741af
commit
fab44f6970
1 changed files with 4 additions and 1 deletions
|
@ -1390,7 +1390,10 @@ test "returns :deactivated for deactivated user" do
|
|||
end
|
||||
|
||||
test "returns :approval_pending for unapproved user" do
|
||||
user = insert(:user, local: true, confirmation_pending: false, approval_pending: true)
|
||||
user = insert(:user, local: true, approval_pending: true)
|
||||
assert User.account_status(user) == :approval_pending
|
||||
|
||||
user = insert(:user, local: true, confirmation_pending: true, approval_pending: true)
|
||||
assert User.account_status(user) == :approval_pending
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue