aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2019-07-25 23:02:46 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-31 07:47:02 +0800
commit3cc814bdf629c457cc3899675c4cb1418594d47e (patch)
tree6aac42c36a199e2d9eb4570b2c9cd06f4f17eacd
parent33025d976865859744535edb63063a102bec73f5 (diff)
downloadruby-3cc814bdf629c457cc3899675c4cb1418594d47e.tar.gz
[rubygems/rubygems] Remove warning: shadowing outer local variable - spec
https://github.com/rubygems/rubygems/commit/70c5c17a5f
-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 9f69e417f7..52eea77b46 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -2055,11 +2055,11 @@ gem 'other', version
end
def test_package_attribute
- spec = quick_gem 'c' do |spec|
+ gem = quick_gem 'c' do |spec|
util_make_exec spec, '#!/usr/bin/ruby', 'exe'
end
- installer = util_installer(spec, @gemhome)
+ installer = util_installer(gem, @gemhome)
assert_respond_to(installer, :package)
assert_kind_of(Gem::Package, installer.package)
end