diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-01-08 16:01:35 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-01-08 16:01:35 +0700 |
commit | 7b6c5f0a9d02785bee3e4c2585fea1f8983e61b0 (patch) | |
tree | d27762ebddcfcc371cc1735835b4982ff59c61cc /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | db6f4496ebb5dbcb680104b2df80410b9dcb8407 (diff) | |
download | pleroma-7b6c5f0a9d02785bee3e4c2585fea1f8983e61b0.tar.gz pleroma-7b6c5f0a9d02785bee3e4c2585fea1f8983e61b0.zip |
improve test readability
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 4a8c70b3b..a3c58379e 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -1522,7 +1522,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do {:ok, _} = CommonAPI.pin(activity.id, user) id_str = Integer.to_string(activity.id) - user = User.get_by_ap_id(user.ap_id) + user = refresh_record(user) assert %{"id" => ^id_str, "pinned" => false} = conn @@ -1556,7 +1556,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do |> Map.get(:resp_body) |> Jason.decode!() - user = User.get_by_ap_id(user.ap_id) + user = refresh_record(user) assert %{"error" => "You have already pinned the maximum number of statuses"} = conn |