From: Go MAEDA Date: Thu, 1 Apr 2021 15:22:33 +0000 (+0000) Subject: Disable TestAdapter on IntegrationTest (#29914, #32936). X-Git-Tag: 5.0.0~466 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0037ad1afe9726a449c70473de1933fd1132738a;p=redmine.git Disable TestAdapter on IntegrationTest (#29914, #32936). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20893 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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"