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:
parent
b1d8d73525
commit
01b72f7adf
2 changed files with 9 additions and 0 deletions
9
test/mailers/user_mailer_test.rb
Normal file
9
test/mailers/user_mailer_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue