aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-12-14 21:14:58 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-12-15 18:05:18 +0900
commit7e084ed707310139b351f6d30af435676422af62 (patch)
treedb7450ae96ccd8d90287e33412769230da247242 /test/rubygems/test_gem_specification.rb
parent583e06e28f5ed4078393000f929f4380777ba972 (diff)
downloadruby-7e084ed707310139b351f6d30af435676422af62.tar.gz
Merge RubyGems and Bundler master
Merge from https://github.com/rubygems/rubygems/commit/793ad95ecb40e84a1dcb4cb60f2686843ed90de5
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index bfd0db347e..375bacf9bd 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -944,7 +944,7 @@ dependencies: []
end
def test_self_outdated_and_latest_remotes
- specs = spec_fetcher do |fetcher|
+ spec_fetcher do |fetcher|
fetcher.download 'a', 4
fetcher.download 'b', 3
@@ -953,8 +953,8 @@ dependencies: []
end
expected = [
- [specs['a-3.a'], v(4)],
- [specs['b-2'], v(3)],
+ [Gem::Specification.stubs.find {|s| s.full_name == 'a-3.a' }, v(4)],
+ [Gem::Specification.stubs.find {|s| s.full_name == 'b-2' }, v(3)],
]
assert_equal expected, Gem::Specification.outdated_and_latest_version.to_a