diff --git a/test/unit/custom_workflow_mailer_test.rb b/test/unit/custom_workflow_mailer_test.rb index 61bb4f5..964d915 100644 --- a/test/unit/custom_workflow_mailer_test.rb +++ b/test/unit/custom_workflow_mailer_test.rb @@ -42,16 +42,16 @@ def test_truth def test_custom_email CustomWorkflowMailer.deliver_custom_email @user2, subject: 'Subject', text_body: 'Body', html_body: 'Body' email = last_email - assert text_part(email).body.include?('Body'), "'#{text_part(email).body}' expected" - assert html_part(email).body.include?('Body'), "'#{html_part(email).body}' expected" + assert text_part(email).body.include?('Body'), "'Body' expected\n'#{response.body}' present'" + assert html_part(email).body.include?('Body'), "'Body' expected\n'#{response.body}' present'" end def test_custom_email_template CustomWorkflowMailer.deliver_custom_email @user2, subject: 'Subject', template_name: 'mailer/test_email', template_params: { url: Setting.host_name } email = last_email - assert text_part(email).body.include?('Body'), "'#{Setting.host_name} expected" - assert html_part(email).body.include?('Body'), "'#{Setting.host_name} expected" + assert text_part(email).body.include?('Body'), "'#{Setting.host_name} expected\n'#{response.body}' present'" + assert html_part(email).body.include?('Body'), "'#{Setting.host_name} expected\n'#{response.body}' present'" end private