Fix missing html layout for user_mailer emails

This was caused by renaming the mailer without renaming the layout. Added a test to cover this in future.

Fixes #2903
This commit is contained in:
Andy Allan 2020-11-11 11:19:20 +00:00
parent b1d8d73525
commit 01b72f7adf
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,9 @@
require "test_helper"
class UserMailerTest < ActionMailer::TestCase
def test_html_layout_is_used
email = UserMailer.message_notification(create(:message))
assert_match(/<html lang=/, email.html_part.body.to_s)
end
end