Change user.approval_pending field to user.is_approved

This commit is contained in:
Mark Felder 2020-10-16 21:44:25 +00:00
commit f7e59c28ed
10 changed files with 74 additions and 54 deletions

View file

@ -1028,7 +1028,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
assert user
refute user.confirmation_pending
refute user.approval_pending
assert user.is_approved
end
test "registers but does not log in with :account_activation_required", %{conn: conn} do
@ -1150,7 +1150,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
user = Repo.get_by(User, email: "lain@example.org")
assert user.approval_pending
refute user.is_approved
assert user.registration_reason == "I'm a cool dude, bro"
end