From 0037ad1afe9726a449c70473de1933fd1132738a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 1 Apr 2021 15:22:33 +0000 Subject: [PATCH] Disable TestAdapter on IntegrationTest (#29914, #32936). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20893 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/test_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index 0a5ddb5d9..10f4f6e35 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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" -- 2.39.5