diff options
Diffstat (limited to 'test/rubygems/test_gem_dependency_resolver_installer_set.rb')
-rw-r--r-- | test/rubygems/test_gem_dependency_resolver_installer_set.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_dependency_resolver_installer_set.rb b/test/rubygems/test_gem_dependency_resolver_installer_set.rb index 516a4d03fe..6341c6bc73 100644 --- a/test/rubygems/test_gem_dependency_resolver_installer_set.rb +++ b/test/rubygems/test_gem_dependency_resolver_installer_set.rb @@ -4,11 +4,9 @@ require 'rubygems/dependency_resolver' class TestGemDependencyResolverInstallerSet < Gem::TestCase def test_load_spec - a_2_p = nil - - spec_fetcher do |fetcher| + specs = spec_fetcher do |fetcher| fetcher.spec 'a', 2 - a_2_p = fetcher.spec 'a', 2 do |s| s.platform = Gem::Platform.local end + fetcher.spec 'a', 2 do |s| s.platform = Gem::Platform.local end end source = Gem::Source.new @gem_repo @@ -18,7 +16,7 @@ class TestGemDependencyResolverInstallerSet < Gem::TestCase spec = set.load_spec 'a', version, Gem::Platform.local, source - assert_equal a_2_p.full_name, spec.full_name + assert_equal specs["a-2-#{Gem::Platform.local}"].full_name, spec.full_name end end |