1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Journal must be saved.

git-svn-id: http://svn.redmine.org/redmine/trunk@17589 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2018-10-10 18:41:12 +00:00
parent 0c78056a69
commit 717bef36a3

View File

@ -141,6 +141,7 @@ class MailerTest < ActiveSupport::TestCase
def test_issue_edit_should_generate_url_with_hostname_for_relations 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 = 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.details << JournalDetail.new(:property => 'relation', :prop_key => 'label_relates_to', :value => 2)
journal.save
Mailer.deliver_issue_edit(journal) Mailer.deliver_issue_edit(journal)
assert_not_nil last_email assert_not_nil last_email
assert_select_email do assert_select_email do