summaryrefslogtreecommitdiff
path: root/test/web/activity_pub
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-07-02 13:01:22 -0500
committerMark Felder <feld@FreeBSD.org>2020-07-02 13:01:22 -0500
commit8121e46f25b2ea74bdcc635cab20bd17183bcca2 (patch)
treecf7958401d4d7fd48e6244cd1035f5323032b85f /test/web/activity_pub
parent02d855b2b9a4bb88f0ddd7edc9bca30b66dbf241 (diff)
parent4c044f62258b33a95b8281e1eb42a5e0ce47d42d (diff)
downloadpleroma-8121e46f25b2ea74bdcc635cab20bd17183bcca2.tar.gz
pleroma-8121e46f25b2ea74bdcc635cab20bd17183bcca2.zip
Merge branch 'develop' into activation-meta
Diffstat (limited to 'test/web/activity_pub')
-rw-r--r--test/web/activity_pub/side_effects_test.exs23
1 files changed, 21 insertions, 2 deletions
diff --git a/test/web/activity_pub/side_effects_test.exs b/test/web/activity_pub/side_effects_test.exs
index af27c34b4..2649b060a 100644
--- a/test/web/activity_pub/side_effects_test.exs
+++ b/test/web/activity_pub/side_effects_test.exs
@@ -589,10 +589,29 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
end
test "it streams out the announce", %{announce: announce} do
- with_mock Pleroma.Web.ActivityPub.ActivityPub, [:passthrough], stream_out: fn _ -> nil end do
+ with_mocks([
+ {
+ Pleroma.Web.Streamer,
+ [],
+ [
+ stream: fn _, _ -> nil end
+ ]
+ },
+ {
+ Pleroma.Web.Push,
+ [],
+ [
+ send: fn _ -> nil end
+ ]
+ }
+ ]) do
{:ok, announce, _} = SideEffects.handle(announce)
- assert called(Pleroma.Web.ActivityPub.ActivityPub.stream_out(announce))
+ assert called(
+ Pleroma.Web.Streamer.stream(["user", "list", "public", "public:local"], announce)
+ )
+
+ assert called(Pleroma.Web.Push.send(:_))
end
end
end