projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2fe796
)
Fix uploaded media plug test
author
rinpatch
<rinpatch@sdf.org>
Thu, 14 Mar 2019 19:26:54 +0000
(22:26 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Thu, 14 Mar 2019 19:26:54 +0000
(22:26 +0300)
test/plugs/uploaded_media_plug_test.exs
patch
|
blob
|
history
diff --git
a/test/plugs/uploaded_media_plug_test.exs
b/test/plugs/uploaded_media_plug_test.exs
index 414cf91864dcf827786fe8e0a3557c37db21558c..49cf5396ade585ef12746504f33a92a356068ae3 100644
(file)
--- 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