From: Mark Felder <feld@feld.me>
Date: Tue, 2 Mar 2021 18:29:16 +0000 (-0600)
Subject: Test both ingestion of post in the status controller and the correct response during... 
X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f0208980e48ee361f9eaa40352f519a1b95ace28;p=akkoma

Test both ingestion of post in the status controller and the correct response during the view
---

diff --git a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
index bd385bccd..634ebf79c 100644
--- a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
+++ b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
@@ -376,6 +376,17 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
           "status" => "cofe is my copilot"
         })
 
+      assert %{
+               "content" => "cofe is my copilot"
+             } = json_response_and_validate_schema(result, 200)
+
+      activity = result.assigns.activity.id
+
+      result =
+        conn
+        |> put_req_header("content-type", "application/json")
+        |> get("api/v1/statuses/#{activity}")
+
       assert %{
                "content" => "cofe is my copilot",
                "application" => %{