diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-07 14:53:12 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-13 18:16:07 +0400 |
commit | 260cbddc943e53a85762e56852de65d2b900cc04 (patch) | |
tree | 35392d875d9496dbe137c8cff5a8a20a83e8af28 /test/support/conn_case.ex | |
parent | f80116125f928de36c93627bbdf5f6578396f53b (diff) | |
download | pleroma-260cbddc943e53a85762e56852de65d2b900cc04.tar.gz pleroma-260cbddc943e53a85762e56852de65d2b900cc04.zip |
Add spec for AccountController.update_credentials
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r-- | test/support/conn_case.ex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index 064874201..36ce372c2 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -51,6 +51,11 @@ defmodule Pleroma.Web.ConnCase do %{user: user, token: token, conn: conn} end + defp request_content_type(%{conn: conn}) do + conn = put_req_header(conn, "content-type", "multipart/form-data") + [conn: conn] + end + defp ensure_federating_or_authenticated(conn, url, user) do initial_setting = Config.get([:instance, :federating]) on_exit(fn -> Config.put([:instance, :federating], initial_setting) end) |