Skip to content

Commit

Permalink
Expect user email for deletion mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 1, 2024
1 parent 6dd845c commit cf87d8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/models/user_cleaner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ def test_enqueues_additional_deletion_warning_mails(num_days)

expect do
UserCleaner.new.delete_users_according_to_deletion_date!
end.to have_enqueued_mail(UserCleanerMailer, :deletion_email)
end.to(have_enqueued_mail(UserCleanerMailer, :deletion_email)
.with { |args| expect(args).to include(user.email) })
end
end
end
Expand Down

0 comments on commit cf87d8b

Please sign in to comment.