diff options
author | kaniini <ariadne@dereferenced.org> | 2019-10-21 07:54:48 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-10-21 07:54:48 +0000 |
commit | 2ebe8c416a72b512feaba87040982da5bcf865cf (patch) | |
tree | 46fe8f5ba2a0042ff6b94d09822107d976b0591e /test/user_test.exs | |
parent | 62e3d76a450c1b34ba8d0c88a184ec861ed90f29 (diff) | |
parent | 05c58eaecef3d51b567ff1529aa33f36e03f5452 (diff) | |
download | pleroma-2ebe8c416a72b512feaba87040982da5bcf865cf.tar.gz |
Merge branch 'feature/activitypub-semantics' into 'develop'
activitypub semantics
See merge request pleroma/pleroma!1798
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 ad050b7da..05bdb9a61 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1232,6 +1232,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) |