From ee082f4653ae4a437cc2ea1be2855251af7bb4a3 Mon Sep 17 00:00:00 2001 From: Joenio Costa Date: Thu, 20 Mar 2014 11:26:59 -0300 Subject: [PATCH] Fix intermitent error in test --- test/unit/person_notifier_test.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) 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