Use response_content_type test assertion from Phoenix.ConnTest

This commit is contained in:
Mark Felder 2023-05-31 10:31:22 -04:00
parent 33d566f2ac
commit 4732fc4a28

View file

@ -63,10 +63,7 @@ defmodule Pleroma.Web.Plugs.UploadedMediaPlugTest do
conn = get(build_conn(), attachment_url)
assert Enum.any?(
conn.resp_headers,
&(&1 == {"content-type", "text/plain"})
)
assert response_content_type(conn, :text)
end)
end
end