Actually test viewing status after ingestion
authorMark Felder <feld@feld.me>
Tue, 2 Mar 2021 18:33:32 +0000 (12:33 -0600)
committerMark Felder <feld@feld.me>
Tue, 2 Mar 2021 18:33:32 +0000 (12:33 -0600)
test/pleroma/web/mastodon_api/controllers/status_controller_test.exs

index 634ebf79cad2fbbfc724c8da3d853951d44669b3..39ab90ba6689bc17bb03e2498a81e614522aa79e 100644 (file)
@@ -407,6 +407,16 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
           "status" => "club mate is my wingman"
         })
 
+      assert %{"content" => "club mate is my wingman"} =
+               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" => "club mate is my wingman",
                "application" => nil