From 2ece4d96f093c8526f86f5efb164e12a0897a325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 23 Mar 2020 17:51:20 +0100 Subject: [PATCH] [rubygems/rubygems] Fix ruby warnings about a shadowed variable https://github.com/rubygems/rubygems/commit/5cfb3252d9 --- test/rubygems/test_gem_installer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index 8020a42690..76828917ec 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -749,12 +749,12 @@ gem 'other', version end def test_generate_plugins_with_install_dir - spec = quick_gem 'a' do |spec| + spec = quick_gem 'a' do |s| write_file File.join(@tempdir, 'lib', 'rubygems_plugin.rb') do |io| io.write "puts __FILE__" end - spec.files += %w[lib/rubygems_plugin.rb] + s.files += %w[lib/rubygems_plugin.rb] end util_build_gem spec