diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-07-27 08:29:53 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-07-27 08:29:53 -0500 |
commit | 33a19c002a9196cb67d3379d5237f9490c957f1b (patch) | |
tree | ba6cbd601f1c20560d627677b1332324898fb01f /test/support/conn_case.ex | |
parent | 94db0b7cd604022c65b9f70e5c5a939ac3ed4801 (diff) | |
parent | 7acdab1f305bac744a302e3b44e2e920d6bc8a47 (diff) | |
download | pleroma-33a19c002a9196cb67d3379d5237f9490c957f1b.tar.gz pleroma-33a19c002a9196cb67d3379d5237f9490c957f1b.zip |
Merge remote-tracking branch 'pleroma/develop' into errorview-json-fix
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") |