Skip to content

Commit b18f2fe

Browse files
committed
Fix "warning: shadowing outer local variable - job"
1 parent 013749e commit b18f2fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activejob/lib/active_job/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,8 @@ def prepare_args_for_assertion(args)
561561
end
562562

563563
def deserialize_args_for_assertion(job)
564-
job.dup.tap do |job|
565-
job[:args] = ActiveJob::Arguments.deserialize(job[:args]) if job[:args]
564+
job.dup.tap do |new_job|
565+
new_job[:args] = ActiveJob::Arguments.deserialize(new_job[:args]) if new_job[:args]
566566
end
567567
end
568568

0 commit comments

Comments
 (0)