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
This commit is contained in:
Marius Balteanu
2024-08-20 06:04:41 +00:00
parent 3ac9d0d75e
commit bfcddc2692
3 changed files with 12 additions and 1 deletions

View File

@@ -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