This was caused by renaming the mailer without renaming the layout. Added a test to cover this in future. Fixes #2903
9 lines
232 B
Ruby
9 lines
232 B
Ruby
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
|