From bc18745868066ce5d9d789c936ee95c1675c9d74 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Fri, 30 Aug 2024 16:33:44 +0100 Subject: [PATCH] Using guid for template value --- spec/mailers/application_mailer_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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