mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 08:16:03 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user