From 7fd9b596d3708ce75edfc1fa8d02f41e730af882 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Thu, 29 Aug 2024 15:14:43 +0100 Subject: [PATCH] replace notify_email with view_mail --- app/mailers/application_mailer.rb | 4 ---- spec/mailers/application_mailer_spec.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 062c7a5ca..764423d4f 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -27,8 +27,4 @@ class ApplicationMailer < Mail::Notify::Mailer raise end - - def notify_email(headers) - view_mail(GOVUK_NOTIFY_TEMPLATE_ID, headers) - end end diff --git a/spec/mailers/application_mailer_spec.rb b/spec/mailers/application_mailer_spec.rb index bbc297fa8..ef782fbee 100644 --- a/spec/mailers/application_mailer_spec.rb +++ b/spec/mailers/application_mailer_spec.rb @@ -13,7 +13,7 @@ } def test_notify_error - notify_email(to: "test@example.com", subject: "Some subject") + view_mail("testGOVUK_NOTIFY_TEMPLATE_ID_APPLICATION", to: "test@example.com", subject: "Some subject") end end