Test default "content-type" for CastAndValidate
authorEgor Kislitsyn <egor@kislitsyn.com>
Mon, 29 Jun 2020 15:47:04 +0000 (19:47 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Mon, 29 Jun 2020 15:47:04 +0000 (19:47 +0400)
test/web/mastodon_api/controllers/account_controller_test.exs

index ebfcedd0196dcb7feb139fa8d4e8e712576c8fb5..260ad2306bb4ba2a3ff46ff577ea902cb2c87b3a 100644 (file)
@@ -780,7 +780,6 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
 
       assert %{"id" => _id, "muting" => true, "muting_notifications" => true} =
                conn
-               |> put_req_header("content-type", "application/json")
                |> post("/api/v1/accounts/#{other_user.id}/mute")
                |> json_response_and_validate_schema(200)