Commit f0208980 authored by feld's avatar feld
Browse files

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

parent 85b2387f
......@@ -376,6 +376,17 @@ test "discloses application metadata when enabled" 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" => %{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment