summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
diff options
context:
space:
mode:
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|