diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index b08127639..74f5b7133 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -59,7 +59,13 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do      user = insert(:user)      {:ok, activity} = CommonAPI.post(user, %{"status" => "he", "in_reply_to_status_id" => note.id}) -    assert activity.data["object"]["inReplyTo"] == note.data["object"]["id"] +    status = StatusView.render("status.json", %{activity: activity}) + +    assert status.in_reply_to_id == note.id + +    [status] = StatusView.render("index.json", %{activities: [activity], as: :activity}) + +    assert status.in_reply_to_id == note.id    end    test "contains mentions" do  | 
