diff options
| author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-02 17:08:03 +0700 |
|---|---|---|
| committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-02 17:08:03 +0700 |
| commit | 11c2d6bdc458d40616e677ff71e471bd827344ee (patch) | |
| tree | 805d6b8ca800e55d956bf6e80b18f10ad5912847 /test/web/mastodon_api/notification_view_test.exs | |
| parent | 1b3d92192194baf6b431cd9f0ce58062d1b703d5 (diff) | |
| download | pleroma-11c2d6bdc458d40616e677ff71e471bd827344ee.tar.gz pleroma-11c2d6bdc458d40616e677ff71e471bd827344ee.zip | |
change `Repo.get(Activity, id)` => `Activity.get_by_id(id)` in tests
Diffstat (limited to 'test/web/mastodon_api/notification_view_test.exs')
| -rw-r--r-- | test/web/mastodon_api/notification_view_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/notification_view_test.exs b/test/web/mastodon_api/notification_view_test.exs index dc747e327..f2c1eb76c 100644 --- a/test/web/mastodon_api/notification_view_test.exs +++ b/test/web/mastodon_api/notification_view_test.exs @@ -44,7 +44,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do {:ok, create_activity} = CommonAPI.post(user, %{"status" => "hey"}) {:ok, favorite_activity, _object} = CommonAPI.favorite(create_activity.id, another_user) {:ok, [notification]} = Notification.create_notifications(favorite_activity) - create_activity = Repo.get(Activity, create_activity.id) + create_activity = Activity.get_by_id(create_activity.id) expected = %{ id: to_string(notification.id), @@ -66,7 +66,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do {:ok, create_activity} = CommonAPI.post(user, %{"status" => "hey"}) {:ok, reblog_activity, _object} = CommonAPI.repeat(create_activity.id, another_user) {:ok, [notification]} = Notification.create_notifications(reblog_activity) - reblog_activity = Repo.get(Activity, create_activity.id) + reblog_activity = Activity.get_by_id(create_activity.id) expected = %{ id: to_string(notification.id), |
