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:
parent
ed2c98fcae
commit
d55e1ec5b0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue