]> source.dussan.org Git - redmine.git/commitdiff
Disable TestAdapter on IntegrationTest (#29914, #32936).
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:22:33 +0000 (15:22 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:22:33 +0000 (15:22 +0000)
Patch by Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@20893 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index 0a5ddb5d9dade83540dd719d9aa6c73ac0238456..10f4f6e352f0ae3eb85c809eee9852bd1d3d7149 100644 (file)
@@ -392,6 +392,11 @@ module Redmine
   end
 
   class IntegrationTest < ActionDispatch::IntegrationTest
+    def setup
+      ActionMailer::MailDeliveryJob.disable_test_adapter
+      super
+    end
+
     def log_user(login, password)
       User.anonymous
       get "/login"