diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-05-28 13:51:21 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-05-28 13:51:21 -0500 |
commit | 39127f15eb36c4fb41838a232f9d80c50416838d (patch) | |
tree | da8cf563c6c4f5cfdaec14c4a5cddb808f0807e6 /test/support/conn_case.ex | |
parent | c23b81e399d5be6fc30f4acb1d757d5eb291d8e1 (diff) | |
parent | 7ad87571bdcd39959280d15f5bfe4175e04c442c (diff) | |
download | pleroma-39127f15eb36c4fb41838a232f9d80c50416838d.tar.gz pleroma-39127f15eb36c4fb41838a232f9d80c50416838d.zip |
Merge remote-tracking branch 'pleroma/develop' into cycles-router-api-routes
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r-- | test/support/conn_case.ex | 8 |
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") |