From 1093454193bd469d2e344b0a216431cdef27e372 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 18 May 2013 17:24:23 +0000 Subject: Adds markings to emails generated by private comments (#12888). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11869 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/mailer_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/unit/mailer_test.rb') diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index c1b6ba6ac..f66e5763c 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -361,6 +361,17 @@ class MailerTest < ActiveSupport::TestCase assert_not_include 'someone@foo.bar', ActionMailer::Base.deliveries.last.bcc.sort end + def test_issue_edit_should_mark_private_notes + journal = Journal.find(2) + journal.private_notes = true + journal.save! + + with_settings :default_language => 'en' do + Mailer.issue_edit(journal).deliver + end + assert_mail_body_match '(Private notes)', last_email + end + def test_document_added document = Document.find(1) valid_languages.each do |lang| -- cgit v1.2.3