summaryrefslogtreecommitdiff
path: root/test/web/ostatus/incoming_documents/delete_handling_test.exs
diff options
context:
space:
mode:
authorWim Vanderbauwhede <wim.vanderbauwhede@mail.be>2019-02-14 16:41:40 +0000
committerWim Vanderbauwhede <wim.vanderbauwhede@mail.be>2019-02-14 16:41:40 +0000
commit04b1c135543965860029557fc216eb38fd63b6c7 (patch)
treec1fb60376eeb35539704c23d282af7777895d4ea /test/web/ostatus/incoming_documents/delete_handling_test.exs
parentbf5b1c7f06c9f8882c40cf2385439bee3b74522c (diff)
parent1d17082ab2523eb75ee0ca4a49e45da0d0edabd7 (diff)
downloadpleroma-04b1c135543965860029557fc216eb38fd63b6c7.tar.gz
pleroma-04b1c135543965860029557fc216eb38fd63b6c7.zip
Merge remote-tracking branch 'upstream/develop' into patch-image-description
Diffstat (limited to 'test/web/ostatus/incoming_documents/delete_handling_test.exs')
-rw-r--r--test/web/ostatus/incoming_documents/delete_handling_test.exs11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/web/ostatus/incoming_documents/delete_handling_test.exs b/test/web/ostatus/incoming_documents/delete_handling_test.exs
index c8fbff6cc..d295cc539 100644
--- a/test/web/ostatus/incoming_documents/delete_handling_test.exs
+++ b/test/web/ostatus/incoming_documents/delete_handling_test.exs
@@ -2,9 +2,18 @@ defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
use Pleroma.DataCase
import Pleroma.Factory
- alias Pleroma.{Repo, Activity, Object}
+ import Tesla.Mock
+
+ alias Pleroma.Repo
+ alias Pleroma.Activity
+ alias Pleroma.Object
alias Pleroma.Web.OStatus
+ setup do
+ mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
+ :ok
+ end
+
describe "deletions" do
test "it removes the mentioned activity" do
note = insert(:note_activity)