diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-08-20 06:04:41 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-08-20 06:04:41 +0000 |
commit | bfcddc269246b940ffbb1289b9d2d0a0c3f80b31 (patch) | |
tree | ecce9b754ec21c9d9d291828aedd58a04ac60602 /test/unit | |
parent | 3ac9d0d75e84f47c8a537fda81b4b9d221fd56f4 (diff) | |
download | redmine-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/unit')
-rw-r--r-- | test/unit/jobs/destroy_project_job_test.rb | 4 | ||||
-rw-r--r-- | test/unit/jobs/destroy_projects_job_test.rb | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/unit/jobs/destroy_project_job_test.rb b/test/unit/jobs/destroy_project_job_test.rb index 2fe1a9fe3..667f0c864 100644 --- a/test/unit/jobs/destroy_project_job_test.rb +++ b/test/unit/jobs/destroy_project_job_test.rb @@ -66,4 +66,8 @@ class DestroyProjectJobTest < ActiveJob::TestCase ) end end + + def queue_adapter_for_test + ActiveJob::QueueAdapters::TestAdapter.new + end end 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 |