Adds unit test for #3645.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3327 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-01-17 11:48:46 +00:00
parent ed2c98fcae
commit d55e1ec5b0
1 changed files with 6 additions and 0 deletions

View File

@ -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)