diff --git a/spec/mailers/application_mailer_spec.rb b/spec/mailers/application_mailer_spec.rb index ef782fbee..18f8164d3 100644 --- a/spec/mailers/application_mailer_spec.rb +++ b/spec/mailers/application_mailer_spec.rb @@ -13,7 +13,11 @@ } def test_notify_error - view_mail("testGOVUK_NOTIFY_TEMPLATE_ID_APPLICATION", to: "test@example.com", subject: "Some subject") + view_mail( + ApplicationMailer::GOVUK_NOTIFY_TEMPLATE_ID, + to: "test@example.com", + subject: "Some subject", + ) end end