From 355f285a8693934fbc8205c2c9ecde0a758fc158 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Thu, 14 Mar 2019 22:26:54 +0300 Subject: [PATCH] Fix uploaded media plug test --- test/plugs/uploaded_media_plug_test.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/plugs/uploaded_media_plug_test.exs b/test/plugs/uploaded_media_plug_test.exs index 414cf9186..49cf5396a 100644 --- a/test/plugs/uploaded_media_plug_test.exs +++ b/test/plugs/uploaded_media_plug_test.exs @@ -6,7 +6,8 @@ defmodule Pleroma.Web.UploadedMediaPlugTest do use Pleroma.Web.ConnCase alias Pleroma.Upload - setup_all do + defp upload_file(context) do + Pleroma.DataCase.ensure_local_uploader(context) File.cp!("test/fixtures/image.jpg", "test/fixtures/image_tmp.jpg") file = %Plug.Upload{ @@ -20,6 +21,8 @@ defmodule Pleroma.Web.UploadedMediaPlugTest do [attachment_url: attachment_url] end + setup_all :upload_file + test "does not send Content-Disposition header when name param is not set", %{ attachment_url: attachment_url } do -- 2.45.2