diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-10-21 11:05:09 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-10-21 11:05:09 +0300 |
commit | a11a7176d59deafa08a865d6e0950b9b9c540f18 (patch) | |
tree | 9a5004f4de7bfa4bf515adaddab65e290d8e38e7 /test/user_test.exs | |
parent | 75da202ab74489af15e086f06810e22211d52d33 (diff) | |
parent | 2ebe8c416a72b512feaba87040982da5bcf865cf (diff) | |
download | pleroma-a11a7176d59deafa08a865d6e0950b9b9c540f18.tar.gz pleroma-a11a7176d59deafa08a865d6e0950b9b9c540f18.zip |
Merge remote-tracking branch 'remotes/upstream/develop' into 1304-user-info-deprecation
# Conflicts:
# lib/pleroma/user/info.ex
# lib/pleroma/web/activity_pub/activity_pub.ex
# lib/pleroma/web/activity_pub/transmogrifier.ex
Diffstat (limited to 'test/user_test.exs')
-rw-r--r-- | test/user_test.exs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/user_test.exs b/test/user_test.exs index 3d5b382c8..c78e1512a 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1231,6 +1231,20 @@ defmodule Pleroma.UserTest do end end + describe "invisible?/1" do + test "returns true for an invisible user" do + user = insert(:user, local: true, info: %{invisible: true}) + + assert User.invisible?(user) + end + + test "returns false for a non-invisible user" do + user = insert(:user, local: true) + + refute User.invisible?(user) + end + end + describe "visible_for?/2" do test "returns true when the account is itself" do user = insert(:user, local: true) |