From 717bef36a3b55aee2346926f2a67ed9566728f24 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 10 Oct 2018 18:41:12 +0000 Subject: [PATCH] Journal must be saved. git-svn-id: http://svn.redmine.org/redmine/trunk@17589 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/mailer_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index a5f6c04ff..f75415483 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -141,6 +141,7 @@ class MailerTest < ActiveSupport::TestCase def test_issue_edit_should_generate_url_with_hostname_for_relations journal = Journal.new(:journalized => Issue.find(1), :user => User.find(1), :created_on => Time.now) journal.details << JournalDetail.new(:property => 'relation', :prop_key => 'label_relates_to', :value => 2) + journal.save Mailer.deliver_issue_edit(journal) assert_not_nil last_email assert_select_email do -- 2.39.5