summaryrefslogtreecommitdiff
path: root/test/web/ostatus/incoming_documents/delete_handling_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-01-29 13:12:28 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-01-29 13:12:28 +0300
commit92753b0cd9cfcdc5edb64a5e55ad27f73079f9e0 (patch)
tree606de2d652366d27ce34faebf3ad4274facfd15d /test/web/ostatus/incoming_documents/delete_handling_test.exs
parentd3f9e6f6fed382ede8e314c370c21e84a119f65a (diff)
downloadpleroma-92753b0cd9cfcdc5edb64a5e55ad27f73079f9e0.tar.gz
pleroma-92753b0cd9cfcdc5edb64a5e55ad27f73079f9e0.zip
[#534] Made federation push sender be determined basing on content instead of `referer` header. Updated tests.
Diffstat (limited to 'test/web/ostatus/incoming_documents/delete_handling_test.exs')
-rw-r--r--test/web/ostatus/incoming_documents/delete_handling_test.exs7
1 files changed, 7 insertions, 0 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..d97cd79f4 100644
--- a/test/web/ostatus/incoming_documents/delete_handling_test.exs
+++ b/test/web/ostatus/incoming_documents/delete_handling_test.exs
@@ -2,9 +2,16 @@ defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
use Pleroma.DataCase
import Pleroma.Factory
+ import Tesla.Mock
+
alias Pleroma.{Repo, Activity, 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)