summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-01 15:22:33 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-01 15:22:33 +0000
commit0037ad1afe9726a449c70473de1933fd1132738a (patch)
tree1d6cdacdf47422ea9ebf7c394784fa421296d2f0 /test
parent094628e6947e9a6cf889d01ed34cfbf32e1d73b8 (diff)
downloadredmine-0037ad1afe9726a449c70473de1933fd1132738a.tar.gz
redmine-0037ad1afe9726a449c70473de1933fd1132738a.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/test_helper.rb5
1 files changed, 5 insertions, 0 deletions
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"