diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-09-22 09:14:08 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-09-22 09:14:08 +0900 |
commit | b18f2fe96debdcd0744f99101d1a1e0d42c41eaa (patch) | |
tree | 96487b950867321c682c4556e9ed87228495678e | |
parent | 013749ecff3ac77ae7ffda35bb54a90d786b64f9 (diff) | |
download | rails-b18f2fe96debdcd0744f99101d1a1e0d42c41eaa.tar.gz rails-b18f2fe96debdcd0744f99101d1a1e0d42c41eaa.tar.bz2 rails-b18f2fe96debdcd0744f99101d1a1e0d42c41eaa.zip |
Fix "warning: shadowing outer local variable - job"
-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 |