]> source.dussan.org Git - redmine.git/commitdiff
Journal must be saved.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 10 Oct 2018 18:41:12 +0000 (18:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 10 Oct 2018 18:41:12 +0000 (18:41 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17589 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/mailer_test.rb

index a5f6c04ff0e032b42c8d592890124e88e651c5db..f7541548367544f60046fdb2bf47961bc184b6a0 100644 (file)
@@ -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