projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "add _discoverable_ keyword into ActivityPub @context"
[akkoma]
/
test
/
plugs
/
uploaded_media_plug_test.exs
diff --git
a/test/plugs/uploaded_media_plug_test.exs
b/test/plugs/uploaded_media_plug_test.exs
index 414cf91864dcf827786fe8e0a3557c37db21558c..5ba96313989e7d6dab2898f86be59bf4adb2d20c 100644
(file)
--- a/
test/plugs/uploaded_media_plug_test.exs
+++ b/
test/plugs/uploaded_media_plug_test.exs
@@
-1,12
+1,13
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-201
8
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-201
9
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.UploadedMediaPlugTest do
use Pleroma.Web.ConnCase
alias Pleroma.Upload
# SPDX-License-Identifier: AGPL-3.0-only
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{
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
[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
test "does not send Content-Disposition header when name param is not set", %{
attachment_url: attachment_url
} do