diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2021-03-05 15:51:29 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2021-03-05 15:51:29 +0400 |
commit | 92ab72dbbb4f56a0e0c3d0882ce29d54739437c1 (patch) | |
tree | 86678af75578aacfb7ad64155ec6b1e50be0c0c7 /test/support | |
parent | 13aa98d6899ba1e4a37fa1fd3ddb1ac35ea6e136 (diff) | |
download | pleroma-92ab72dbbb4f56a0e0c3d0882ce29d54739437c1.tar.gz |
Update OpenApiSpex dependency
Diffstat (limited to 'test/support')
-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") |