aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-22 09:14:08 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-22 09:14:08 +0900
commitb18f2fe96debdcd0744f99101d1a1e0d42c41eaa (patch)
tree96487b950867321c682c4556e9ed87228495678e /activejob
parent013749ecff3ac77ae7ffda35bb54a90d786b64f9 (diff)
downloadrails-b18f2fe96debdcd0744f99101d1a1e0d42c41eaa.tar.gz
rails-b18f2fe96debdcd0744f99101d1a1e0d42c41eaa.tar.bz2
rails-b18f2fe96debdcd0744f99101d1a1e0d42c41eaa.zip
Fix "warning: shadowing outer local variable - job"
Diffstat (limited to 'activejob')
-rw-r--r--activejob/lib/active_job/test_helper.rb4
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