aboutsummaryrefslogtreecommitdiff
path: root/test/backup_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/backup_test.exs')
-rw-r--r--test/backup_test.exs7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/backup_test.exs b/test/backup_test.exs
index 0ea40e6fd..23c08b680 100644
--- a/test/backup_test.exs
+++ b/test/backup_test.exs
@@ -67,7 +67,12 @@ defmodule Pleroma.BackupTest do
assert {:ok, backup} = perform_job(BackupWorker, delete_job_args)
refute Backup.get(backup_id)
- assert_email_sent(Pleroma.Emails.UserEmail.backup_is_ready_email(backup))
+ email = Pleroma.Emails.UserEmail.backup_is_ready_email(backup)
+
+ assert_email_sent(
+ to: {user.name, user.email},
+ html_body: email.html_body
+ )
end
test "it removes outdated backups after creating a fresh one" do