summaryrefslogtreecommitdiffstats
path: root/config/environments/test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-10-06 16:07:45 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-10-06 16:07:45 +0000
commit5533eeff239e024539f3ddd5b2ffe3528144beef (patch)
tree6e9db37cec7f40489946649469bf531b268035a8 /config/environments/test.rb
parente159928e6b81c02001411e7e886208533178c0ba (diff)
downloadredmine-5533eeff239e024539f3ddd5b2ffe3528144beef.tar.gz
redmine-5533eeff239e024539f3ddd5b2ffe3528144beef.zip
Fixed that test_email raises an error with #deliver_later (#26791).
git-svn-id: http://svn.redmine.org/redmine/trunk@17587 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r--config/environments/test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 645996dce..e1a3252b0 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -22,6 +22,9 @@ Rails.application.configure do
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+
+ # Disable Async delivery
+ config.active_job.queue_adapter = :inline
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false