From 0c78056a69cc3bee7fb1cd3261046995db55bfdf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 10 Oct 2018 17:13:09 +0000 Subject: Send emails asynchronously (#26791). Custom async_* delivery methods are removed in favor of ActiveJob (Async by default). git-svn-id: http://svn.redmine.org/redmine/trunk@17588 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/mail_handler_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/unit/mail_handler_test.rb') diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 8aa2cdbe8..51219d65e 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -34,6 +34,7 @@ class MailHandlerTest < ActiveSupport::TestCase def setup ActionMailer::Base.deliveries.clear Setting.notified_events = Redmine::Notifiable.all.collect(&:name) + User.current = nil end def teardown -- cgit v1.2.3