From: Jean-Philippe Lang Date: Wed, 10 Oct 2018 18:41:12 +0000 (+0000) Subject: Journal must be saved. X-Git-Tag: 4.0.0~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=717bef36a3b55aee2346926f2a67ed9566728f24;p=redmine.git Journal must be saved. git-svn-id: http://svn.redmine.org/redmine/trunk@17589 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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