Ver código fonte

Fix uploaded media plug test

tags/v1.1.4
rinpatch 5 anos atrás
pai
commit
355f285a86
1 arquivos alterados com 4 adições e 1 exclusões
  1. +4
    -1
      test/plugs/uploaded_media_plug_test.exs

+ 4
- 1
test/plugs/uploaded_media_plug_test.exs Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar