projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
[akkoma]
/
test
/
tasks
/
digest_test.exs
diff --git
a/test/tasks/digest_test.exs
b/test/tasks/digest_test.exs
index 4bfa1fb93beba44eb2bf75834acd6f91720e48a9..eefbc893624d03eb545bb70f81656e39889e2120 100644
(file)
--- a/
test/tasks/digest_test.exs
+++ b/
test/tasks/digest_test.exs
@@
-4,6
+4,7
@@
defmodule Mix.Tasks.Pleroma.DigestTest do
import Pleroma.Factory
import Swoosh.TestAssertions
import Pleroma.Factory
import Swoosh.TestAssertions
+ alias Pleroma.Tests.ObanHelpers
alias Pleroma.Web.CommonAPI
setup_all do
alias Pleroma.Web.CommonAPI
setup_all do
@@
-24,7
+25,7
@@
defmodule Mix.Tasks.Pleroma.DigestTest do
Enum.each(0..10, fn i ->
{:ok, _activity} =
CommonAPI.post(user1, %{
Enum.each(0..10, fn i ->
{:ok, _activity} =
CommonAPI.post(user1, %{
-
"status" =>
"hey ##{i} @#{user2.nickname}!"
+
status:
"hey ##{i} @#{user2.nickname}!"
})
end)
})
end)
@@
-39,6
+40,8
@@
defmodule Mix.Tasks.Pleroma.DigestTest do
:ok = Mix.Tasks.Pleroma.Digest.run(["test", user2.nickname, yesterday_date])
:ok = Mix.Tasks.Pleroma.Digest.run(["test", user2.nickname, yesterday_date])
+ ObanHelpers.perform_all()
+
assert_receive {:mix_shell, :info, [message]}
assert message =~ "Digest email have been sent"
assert_receive {:mix_shell, :info, [message]}
assert message =~ "Digest email have been sent"