aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-06-30 15:58:50 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-06-30 15:58:50 +0300
commit2b9d914089755297f6ac24ffbb81934cf3c70cdd (patch)
tree332292d971662311aa76dd670994a14a6a6faddd /test
parent5b7b1040b38d262b1815276f86036b50847851c7 (diff)
downloadpleroma-2b9d914089755297f6ac24ffbb81934cf3c70cdd.tar.gz
[#161] Refactoring, documentation.
Diffstat (limited to 'test')
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs2
-rw-r--r--test/web/ostatus/ostatus_test.exs2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index fc8703ca9..a914d3c4c 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -72,7 +72,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
data = Map.put(data, "object", object)
with_mock Pleroma.Web.Federator,
- max_replies_depth: fn -> 0 end do
+ allowed_incoming_reply_depth?: fn _ -> false end do
{:ok, returned_activity} = Transmogrifier.handle_incoming(data)
returned_object = Object.normalize(returned_activity.data["object"], false)
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs
index 12627356c..acce33008 100644
--- a/test/web/ostatus/ostatus_test.exs
+++ b/test/web/ostatus/ostatus_test.exs
@@ -298,7 +298,7 @@ defmodule Pleroma.Web.OStatusTest do
incoming = File.read!("test/fixtures/incoming_note_activity_answer.xml")
with_mock Pleroma.Web.Federator,
- max_replies_depth: fn -> 0 end do
+ allowed_incoming_reply_depth?: fn _ -> false end do
{:ok, [activity]} = OStatus.handle_incoming(incoming)
object = Object.normalize(activity.data["object"], false)