diff options
author | Mark Felder <feld@feld.me> | 2021-03-02 12:33:32 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-03-02 12:33:32 -0600 |
commit | ccbf162088951e4b7f28291ca4cd9b9280b40857 (patch) | |
tree | 067bb7c80bdba0e56fdffacbbe1188f49b5f099b | |
parent | f0208980e48ee361f9eaa40352f519a1b95ace28 (diff) | |
download | pleroma-ccbf162088951e4b7f28291ca4cd9b9280b40857.tar.gz |
Actually test viewing status after ingestion
-rw-r--r-- | test/pleroma/web/mastodon_api/controllers/status_controller_test.exs | 10 |
1 files changed, 10 insertions, 0 deletions
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 634ebf79c..39ab90ba6 100644 --- a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs @@ -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 |