summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-01-17 11:48:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-01-17 11:48:46 +0000
commitd55e1ec5b092f8e4f342c047bab64e6cdf24aa92 (patch)
tree40b5650956f2211f11ee0478ffdc76d32d09c9dd /test
parented2c98fcae8617bfb371f58d9380418b53d7d57b (diff)
downloadredmine-d55e1ec5b092f8e4f342c047bab64e6cdf24aa92.tar.gz
redmine-d55e1ec5b092f8e4f342c047bab64e6cdf24aa92.zip
Adds unit test for #3645.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3327 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/mailer_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index fbbff1a03..936be76c5 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -184,6 +184,12 @@ class MailerTest < ActiveSupport::TestCase
should "notify issue watchers" do
user = User.find(9)
+ # minimal email notification options
+ user.pref[:no_self_notified] = '1'
+ user.pref.save
+ user.mail_notification = false
+ user.save
+
Watcher.create!(:watchable => @issue, :user => user)
assert Mailer.deliver_issue_add(@issue)
assert last_email.bcc.include?(user.mail)