projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into 'cleanup/masto_fe-default_settings'
[akkoma]
/
test
/
web
/
activity_pub
/
side_effects_test.exs
diff --git
a/test/web/activity_pub/side_effects_test.exs
b/test/web/activity_pub/side_effects_test.exs
index af27c34b48edd84df389ccabcbb34929221b0d9d..2649b060ab53f0881a4473670f50e64b83101b12 100644
(file)
--- 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
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)
{: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
end
end
end