The Tournament Live email can be sent again
Why it matters: Players can now get the Tournament Live email, which until this fix failed before it could be sent.
The Tournament Live email couldn’t be sent. Previewing it, sending a test copy and sending it to everyone all failed with an error, so the message never reached anyone. This is fixed, and the email can now be previewed, tested and sent.
We also removed a stats image section from the email. It depended on data that was never filled in, so it never showed anything.
Under the hood: The email’s layout was saved under the kind of name used for shared page fragments, so the mail system couldn’t find it. It now has a proper name and the email refers to it directly. New automated tests cover the preview, the test send and the bulk send, and all three would have caught the old problem.
Commits (1)
-
e6f5596Tournament Live email can be sent: template renamed from a partial name, named in the mailer
Files Changed (3)
app/mailers/tournament_mailer.rb | 3 ++- .../ent_live.html.erb => tournament_live.html.erb} | 15 +-------------- test/controllers/admin/emails_coverage_test.rb | 30 ++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 15 deletions(-)