From bfcddc269246b940ffbb1289b9d2d0a0c3f80b31 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Tue, 20 Aug 2024 06:04:41 +0000 Subject: 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 --- test/unit/jobs/destroy_projects_job_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/unit/jobs/destroy_projects_job_test.rb') diff --git a/test/unit/jobs/destroy_projects_job_test.rb b/test/unit/jobs/destroy_projects_job_test.rb index 0008ce189..1a8e78394 100644 --- a/test/unit/jobs/destroy_projects_job_test.rb +++ b/test/unit/jobs/destroy_projects_job_test.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - # Redmine - project management software # Copyright (C) 2006- Jean-Philippe Lang # @@ -66,4 +65,8 @@ class DestroyProjectsJobTest < ActiveJob::TestCase ) end end + + def queue_adapter_for_test + ActiveJob::QueueAdapters::TestAdapter.new + end end -- cgit v1.2.3