aboutsummaryrefslogtreecommitdiff
path: root/test/support/conn_case.ex
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-06-01 15:55:05 -0500
committerAlex Gleason <alex@alexgleason.me>2021-06-01 15:55:05 -0500
commit9d89e1736a08d6c559355e52a996782994608cd4 (patch)
treecf34422a48ea0e6cad4299db7816b094512416fe /test/support/conn_case.ex
parent9166ae1bcf8a8ec113bb21aab7effca5a14601ca (diff)
parent3fe6ada6fc6f42057cb346c04e4ecc9f35c0e5cb (diff)
downloadpleroma-cycles-config-url.tar.gz
Merge remote-tracking branch 'pleroma/develop' into cycles-config-urlcycles-config-url
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r--test/support/conn_case.ex8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex
index 953aa010a..deee98599 100644
--- a/test/support/conn_case.ex
+++ b/test/support/conn_case.ex
@@ -67,13 +67,11 @@ defmodule Pleroma.Web.ConnCase do
end
defp json_response_and_validate_schema(
- %{
- private: %{
- open_api_spex: %{operation_id: op_id, operation_lookup: lookup, spec: spec}
- }
- } = conn,
+ %{private: %{operation_id: op_id}} = conn,
status
) do
+ {spec, lookup} = OpenApiSpex.Plug.PutApiSpec.get_spec_and_operation_lookup(conn)
+
content_type =
conn
|> Plug.Conn.get_resp_header("content-type")