@@ -184,6 +184,12 class MailerTest < ActiveSupport::TestCase | |||
|
184 | 184 | |
|
185 | 185 | should "notify issue watchers" do |
|
186 | 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 | 193 | Watcher.create!(:watchable => @issue, :user => user) |
|
188 | 194 | assert Mailer.deliver_issue_add(@issue) |
|
189 | 195 | assert last_email.bcc.include?(user.mail) |
General Comments 0
You need to be logged in to leave comments.
Login now