##// END OF EJS Templates
Adds unit test for #3645....
Jean-Philippe Lang -
r3213:d55e1ec5b092
parent child
Show More
@@ -184,6 +184,12 class MailerTest < ActiveSupport::TestCase
184
184
185 should "notify issue watchers" do
185 should "notify issue watchers" do
186 user = User.find(9)
186 user = User.find(9)
187 # minimal email notification options
188 user.pref[:no_self_notified] = '1'
189 user.pref.save
190 user.mail_notification = false
191 user.save
192
187 Watcher.create!(:watchable => @issue, :user => user)
193 Watcher.create!(:watchable => @issue, :user => user)
188 assert Mailer.deliver_issue_add(@issue)
194 assert Mailer.deliver_issue_add(@issue)
189 assert last_email.bcc.include?(user.mail)
195 assert last_email.bcc.include?(user.mail)
General Comments 0
You need to be logged in to leave comments. Login now