aboutsummaryrefslogtreecommitdiff
path: root/test/web/common_api
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-01-08 16:01:35 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-01-08 16:01:35 +0700
commit7b6c5f0a9d02785bee3e4c2585fea1f8983e61b0 (patch)
treed27762ebddcfcc371cc1735835b4982ff59c61cc /test/web/common_api
parentdb6f4496ebb5dbcb680104b2df80410b9dcb8407 (diff)
downloadpleroma-7b6c5f0a9d02785bee3e4c2585fea1f8983e61b0.tar.gz
improve test readability
Diffstat (limited to 'test/web/common_api')
-rw-r--r--test/web/common_api/common_api_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index 24e5e56f4..7d5ceb398 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -116,7 +116,7 @@ defmodule Pleroma.Web.CommonAPI.Test do
assert {:ok, ^activity_one} = CommonAPI.pin(activity_one.id, user)
- user = User.get_by_ap_id(user.ap_id)
+ user = refresh_record(user)
assert {:error, "You have already pinned the maximum number of statuses"} =
CommonAPI.pin(activity_two.id, user)