aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_installer.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-23 17:51:20 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commit2ece4d96f093c8526f86f5efb164e12a0897a325 (patch)
tree5c3d3db76095b9854f3ee42c4cc365d2a0334c7e /test/rubygems/test_gem_installer.rb
parenta0c4d14acfa17877d6c1d58e5960513f152b493c (diff)
downloadruby-2ece4d96f093c8526f86f5efb164e12a0897a325.tar.gz
[rubygems/rubygems] Fix ruby warnings about a shadowed variable
https://github.com/rubygems/rubygems/commit/5cfb3252d9
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r--test/rubygems/test_gem_installer.rb4
1 files 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