From 8b307db9c7e7e71d72e934000c1f02e30fe939ef Mon Sep 17 00:00:00 2001 From: Mac Siri Date: Mon, 10 Jul 2023 16:35:57 -0400 Subject: [PATCH] Add missing notify_mailer_preview (#19714) --- spec/mailers/previews/notify_mailer_preview.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/mailers/previews/notify_mailer_preview.rb b/spec/mailers/previews/notify_mailer_preview.rb index 1c1a31fdf..94979ae07 100644 --- a/spec/mailers/previews/notify_mailer_preview.rb +++ b/spec/mailers/previews/notify_mailer_preview.rb @@ -80,6 +80,12 @@ class NotifyMailerPreview < ActionMailer::Preview NotifyMailer.with(name: user.name, email: user.email).account_deleted_email end + def organization_deleted_email + user = User.last + org = Organization.last + NotifyMailer.with(name: user.name, org_name: org.name, email: user.email).organization_deleted_email + end + def export_email NotifyMailer.with(user: User.last, attachment: "attachment").export_email end