Test default "content-type" for CastAndValidate

This commit is contained in:
Egor Kislitsyn 2020-06-29 19:47:04 +04:00
parent 979f02ec94
commit 3aa04b81c4
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805

View file

@ -780,7 +780,6 @@ test "with notifications", %{conn: conn} do
assert %{"id" => _id, "muting" => true, "muting_notifications" => true} = assert %{"id" => _id, "muting" => true, "muting_notifications" => true} =
conn conn
|> put_req_header("content-type", "application/json")
|> post("/api/v1/accounts/#{other_user.id}/mute") |> post("/api/v1/accounts/#{other_user.id}/mute")
|> json_response_and_validate_schema(200) |> json_response_and_validate_schema(200)