diff options
author | lain <lain@soykaf.club> | 2020-07-06 12:15:59 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-07-06 12:15:59 +0200 |
commit | 1963e143c5feace9eb9a3be29b0eeba2ad88751a (patch) | |
tree | 9a7ae160dd452db000e33af62f61057667c5953f /test/web/activity_pub | |
parent | 67d92ac7b7b977debac8f8e580db1f0e1ef3ed52 (diff) | |
parent | 69f0b286f7b3e0518ac7ae54dfb06539dc179698 (diff) | |
download | pleroma-1963e143c5feace9eb9a3be29b0eeba2ad88751a.tar.gz pleroma-1963e143c5feace9eb9a3be29b0eeba2ad88751a.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remove-twitter-api
Diffstat (limited to 'test/web/activity_pub')
-rw-r--r-- | test/web/activity_pub/side_effects_test.exs | 23 |
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 |