Actually test viewing status after ingestion

This commit is contained in:
Mark Felder 2021-03-02 12:33:32 -06:00
parent f0208980e4
commit ccbf162088
1 changed files with 10 additions and 0 deletions

View File

@ -407,6 +407,16 @@ test "hides application metadata when disabled" 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