summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-08-20 06:04:41 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-08-20 06:04:41 +0000
commitbfcddc269246b940ffbb1289b9d2d0a0c3f80b31 (patch)
treeecce9b754ec21c9d9d291828aedd58a04ac60602 /test/integration
parent3ac9d0d75e84f47c8a537fda81b4b9d221fd56f4 (diff)
downloadredmine-bfcddc269246b940ffbb1289b9d2d0a0c3f80b31.tar.gz
redmine-bfcddc269246b940ffbb1289b9d2d0a0c3f80b31.zip
Ensures desired test adapter is used in Active Job tests (#36320).
Patch by Takashi Kato (user:tohosaku). git-svn-id: https://svn.redmine.org/redmine/trunk@22963 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api_test/projects_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index d1dd6c24a..0c75d1fb4 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -416,4 +416,8 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
assert p = Project.find(1)
assert p.active?
end
+
+ def queue_adapter_for_test
+ ActiveJob::QueueAdapters::TestAdapter.new
+ end
end