Move trace descriptions out of success/failure sentences in emails

This commit is contained in:
Anton Khorev 2025-01-09 13:58:38 +03:00
parent d877cd1ebc
commit 6c0366d2a2
8 changed files with 55 additions and 39 deletions

View file

@ -15,7 +15,7 @@ class UserMailerTest < ActionMailer::TestCase
end
email = UserMailer.gpx_success(trace, 100)
assert_match("<em>one</em>, <em>two&amp;three</em>, <em>four&lt;five</em>", email.html_part.body.to_s)
assert_match("one, two&amp;three, four&lt;five", email.html_part.body.to_s)
assert_match("one, two&three, four<five", email.text_part.body.to_s)
end