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