From: Alex Gleason Date: Tue, 14 Jul 2020 23:46:57 +0000 (-0500) Subject: Test User with confirmation_pending: true, approval_pending: true X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=fab44f69703975c0f6182ed1c26c1dcdad221dc5;p=akkoma Test User with confirmation_pending: true, approval_pending: true --- diff --git a/test/user_test.exs b/test/user_test.exs index 9da2aa411..cd39e1623 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1390,7 +1390,10 @@ defmodule Pleroma.UserTest 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