mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-01 08:28:06 +00:00
Use response_content_type test assertion from Phoenix.ConnTest
This commit is contained in:
parent
33d566f2ac
commit
4732fc4a28
|
@ -63,10 +63,7 @@ defmodule Pleroma.Web.Plugs.UploadedMediaPlugTest do
|
||||||
|
|
||||||
conn = get(build_conn(), attachment_url)
|
conn = get(build_conn(), attachment_url)
|
||||||
|
|
||||||
assert Enum.any?(
|
assert response_content_type(conn, :text)
|
||||||
conn.resp_headers,
|
|
||||||
&(&1 == {"content-type", "text/plain"})
|
|
||||||
)
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue