diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-01 03:46:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-01 03:46:53 +0000 |
commit | a499d688021a5ba9f7cb8dba18bb3dc6b0199073 (patch) | |
tree | 8d51530b28415a7de8e8984955b1f32d6136a976 /test | |
parent | 96a718547d643eacddb09155bad25bfc48457efe (diff) | |
download | redmine-a499d688021a5ba9f7cb8dba18bb3dc6b0199073.tar.gz redmine-a499d688021a5ba9f7cb8dba18bb3dc6b0199073.zip |
Show parent issues in notification email (#34302).
Patch by Yuichi HARADA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22120 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/mailer_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 99d67423f..07b7d27ae 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -658,7 +658,7 @@ class MailerTest < ActiveSupport::TestCase ActionMailer::Base.deliveries.clear with_settings :notified_events => %w(issue_added) do cf = IssueCustomField.generate! - issue = Issue.generate! + issue = Issue.generate!(:parent => Issue.find(1)) Mailer.deliver_issue_add(issue) assert_not_equal 0, ActionMailer::Base.deliveries.size @@ -667,6 +667,7 @@ class MailerTest < ActiveSupport::TestCase assert_mail_body_match /^\* Author: /, mail assert_mail_body_match /^\* Status: /, mail assert_mail_body_match /^\* Priority: /, mail + assert_mail_body_match /^\* Parent task: /, mail assert_mail_body_no_match /^\* Assignee: /, mail assert_mail_body_no_match /^\* Category: /, mail |