diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-15 20:29:09 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-18 10:34:50 +0300 |
commit | 1671864d886bf63d11bbf3d7303719e8744bfc32 (patch) | |
tree | 8a1221acce818c919ea92daf7c928f32688d806e /test | |
parent | b1aa402229b6422a5ab1aa7102c7a104e218d0e3 (diff) | |
download | pleroma-1671864d886bf63d11bbf3d7303719e8744bfc32.tar.gz |
return :visible instead of boolean
Diffstat (limited to 'test')
-rw-r--r-- | test/user_test.exs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/user_test.exs b/test/user_test.exs index 3bfcfd10c..6865bd9be 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1293,7 +1293,7 @@ defmodule Pleroma.UserTest do test "returns true when the account is itself" do user = insert(:user, local: true) - assert User.visible_for(user, user) + assert User.visible_for(user, user) == :visible end test "returns false when the account is unauthenticated and auth is required" do @@ -1302,14 +1302,14 @@ defmodule Pleroma.UserTest do user = insert(:user, local: true, confirmation_pending: true) other_user = insert(:user, local: true) - refute User.visible_for(user, other_user) == true + refute User.visible_for(user, other_user) == :visible end test "returns true when the account is unauthenticated and auth is not required" do user = insert(:user, local: true, confirmation_pending: true) other_user = insert(:user, local: true) - assert User.visible_for(user, other_user) + assert User.visible_for(user, other_user) == :visible end test "returns true when the account is unauthenticated and being viewed by a privileged account (auth required)" do @@ -1318,7 +1318,7 @@ defmodule Pleroma.UserTest do user = insert(:user, local: true, confirmation_pending: true) other_user = insert(:user, local: true, is_admin: true) - assert User.visible_for(user, other_user) + assert User.visible_for(user, other_user) == :visible end end |