test: activitypub: use User.invisible?/1 for testing invisibility
authorAriadne Conill <ariadne@dereferenced.org>
Tue, 8 Oct 2019 20:59:43 +0000 (20:59 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Sat, 19 Oct 2019 23:21:37 +0000 (23:21 +0000)
test/web/activity_pub/activity_pub_test.exs

index b87050a4ac276329127c02e45119a8a15c58c346..8ae946969f46e1a28159d1fa50010a455823ff16 100644 (file)
@@ -182,7 +182,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
     test "it returns a user that is invisible" do
       user_id = "http://mastodon.example.org/users/relay"
       {:ok, user} = ActivityPub.make_user_from_ap_id(user_id)
-      assert user.info.invisible
+      assert User.invisible?(user)
     end
 
     test "it fetches the appropriate tag-restricted posts" do