Skip to content

Commit

Permalink
replace notify_email with view_mail
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Sep 3, 2024
1 parent 85517cd commit 7fd9b59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ class ApplicationMailer < Mail::Notify::Mailer

raise
end

def notify_email(headers)
view_mail(GOVUK_NOTIFY_TEMPLATE_ID, headers)
end
end
2 changes: 1 addition & 1 deletion spec/mailers/application_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

def test_notify_error
notify_email(to: "[email protected]", subject: "Some subject")
view_mail("testGOVUK_NOTIFY_TEMPLATE_ID_APPLICATION", to: "[email protected]", subject: "Some subject")
end
end

Expand Down

0 comments on commit 7fd9b59

Please sign in to comment.