summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/util_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-10-11 02:35:32 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-10-11 02:35:32 +0700
commit059005ff829c0313c62ddf5fbcd95f8892920228 (patch)
tree9c33d41fc3efe721f477aef7daa37b05ba812964 /test/web/twitter_api/util_controller_test.exs
parent2c7ff32e5b95926af9b6573a6dc6ea96e3ba7dd5 (diff)
downloadpleroma-059005ff829c0313c62ddf5fbcd95f8892920228.tar.gz
pleroma-059005ff829c0313c62ddf5fbcd95f8892920228.zip
Replace `user.following` with Pleroma.FollowingRelationship
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r--test/web/twitter_api/util_controller_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs
index 9d4cb70f0..5234a5271 100644
--- a/test/web/twitter_api/util_controller_test.exs
+++ b/test/web/twitter_api/util_controller_test.exs
@@ -366,7 +366,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
|> response(200)
assert response =~ "Account followed!"
- assert user2.follower_address in refresh_record(user).following
+ assert user2.follower_address in User.following(user)
end
test "returns error when user is deactivated", %{conn: conn} do
@@ -438,7 +438,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
|> response(200)
assert response =~ "Account followed!"
- assert user2.follower_address in refresh_record(user).following
+ assert user2.follower_address in User.following(user)
end
test "returns error when followee not found", %{conn: conn} do