Show open/closed badge in email notifications (#33834).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19982 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-08-21 08:32:15 +00:00
parent ab0dd3a52a
commit 4edba4fa9d
3 changed files with 34 additions and 1 deletions

View File

@@ -480,6 +480,16 @@ class MailerTest < ActiveSupport::TestCase
end
end
def test_issue_add_should_include_issue_status_type_badge
issue = Issue.find(1)
Mailer.deliver_issue_add(issue)
mail = last_email
assert_select_email do
assert_select 'span.badge.badge-status-open', text: 'open'
end
end
def test_issue_edit_subject_should_include_status_changes_if_setting_is_enabled
with_settings :show_status_changes_in_mail_subject => 1 do
issue = Issue.find(2)