diff --git a/test/unit/custom_workflow_mailer_test.rb b/test/unit/custom_workflow_mailer_test.rb index 551a10b..ba1dd54 100644 --- a/test/unit/custom_workflow_mailer_test.rb +++ b/test/unit/custom_workflow_mailer_test.rb @@ -54,8 +54,8 @@ def test_custom_email_template email = last_email text = text_part(email).body html = html_part(email).body - assert text.include?('Body'), "'#{Setting.host_name} expected\n'#{text}' present'" - assert html.include?('Body'), "'#{Setting.host_name} expected\n'#{html}' present'" + assert text.include?(Setting.host_name), "'#{Setting.host_name} expected\n'#{text}' present'" + assert html.include?(Setting.host_name), "'#{Setting.host_name} expected\n'#{html}' present'" end private