diff options
-rw-r--r-- | activejob/lib/active_job/test_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb index 984fa5e318..9efc8c0c12 100644 --- a/activejob/lib/active_job/test_helper.rb +++ b/activejob/lib/active_job/test_helper.rb @@ -561,8 +561,8 @@ module ActiveJob end def deserialize_args_for_assertion(job) - job.dup.tap do |job| - job[:args] = ActiveJob::Arguments.deserialize(job[:args]) if job[:args] + job.dup.tap do |new_job| + new_job[:args] = ActiveJob::Arguments.deserialize(new_job[:args]) if new_job[:args] end end |