mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-17 01:02:38 +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)
|
||||
|
||||
assert Enum.any?(
|
||||
conn.resp_headers,
|
||||
&(&1 == {"content-type", "text/plain"})
|
||||
)
|
||||
assert response_content_type(conn, :text)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue