diff --git a/test/unit/person_notifier_test.rb b/test/unit/person_notifier_test.rb index 1da1704..96e7062 100644 --- a/test/unit/person_notifier_test.rb +++ b/test/unit/person_notifier_test.rb @@ -36,6 +36,7 @@ class PersonNotifierTest < ActiveSupport::TestCase end should 'do not send mail to people not joined to community' do + ActionMailer::Base.deliveries = [] Comment.create!(:author => @admin, :title => 'test comment 2', :body => 'body 2!', :source => @article) notify sent = ActionMailer::Base.deliveries.first -- libgit2 0.21.2