Commit ee082f4653ae4a437cc2ea1be2855251af7bb4a3
1 parent
c586c3b5
Exists in
master
and in
29 other branches
Fix intermitent error in test
(ActionItem2694)
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
test/unit/person_notifier_test.rb
... | ... | @@ -36,6 +36,7 @@ class PersonNotifierTest < ActiveSupport::TestCase |
36 | 36 | end |
37 | 37 | |
38 | 38 | should 'do not send mail to people not joined to community' do |
39 | + ActionMailer::Base.deliveries = [] | |
39 | 40 | Comment.create!(:author => @admin, :title => 'test comment 2', :body => 'body 2!', :source => @article) |
40 | 41 | notify |
41 | 42 | sent = ActionMailer::Base.deliveries.first | ... | ... |