From b18f2fe96debdcd0744f99101d1a1e0d42c41eaa Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 22 Sep 2018 09:14:08 +0900 Subject: Fix "warning: shadowing outer local variable - job" --- activejob/lib/active_job/test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activejob') 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 -- cgit v1.2.3