Replace request_store with ActiveSupport::CurrentAttributes (#39110).

Patch by Takashi Kato.

git-svn-id: https://svn.redmine.org/redmine/trunk@22473 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2023-11-21 06:45:54 +00:00
parent f5d68651a0
commit fd3843d821
7 changed files with 58 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ class DestroyProjectJobTest < ActiveJob::TestCase
assert_match /deleted successfully/, m.text_part.to_s
else
assert_enqueued_with(
job: ActionMailer::MailDeliveryJob,
job: Mailer::DeliveryJob,
args: ->(job_args){
job_args[1] == 'security_notification' &&
job_args[3].to_s.include?("mail_destroy_project_with_subprojects_successful")

View File

@@ -58,7 +58,7 @@ class DestroyProjectsJobTest < ActiveJob::TestCase
assert_match /deleted successfully/, m.text_part.to_s
else
assert_enqueued_with(
job: ActionMailer::MailDeliveryJob,
job: Mailer::DeliveryJob,
args: ->(job_args){
job_args[1] == 'security_notification' &&
job_args[3].to_s.include?("mail_destroy_project_with_subprojects_successful")