summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-18 17:24:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-18 17:24:23 +0000
commit1093454193bd469d2e344b0a216431cdef27e372 (patch)
treefebaceb61962744bb6042c6b829958b38782d352 /test/unit/mailer_test.rb
parentde394f5f74e0dbf03c54c006ce4e830921515f99 (diff)
downloadredmine-1093454193bd469d2e344b0a216431cdef27e372.tar.gz
redmine-1093454193bd469d2e344b0a216431cdef27e372.zip
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
Diffstat (limited to 'test/unit/mailer_test.rb')
-rw-r--r--test/unit/mailer_test.rb11
1 files changed, 11 insertions, 0 deletions
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|