summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_dependency_resolver_installer_set.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-12 00:16:41 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-12 00:16:41 +0000
commit44d0a6dcd7563526a8b05ccdfa21d9425b94e62b (patch)
treee3bc8e5f1284e65a70c61de9a9d349d5fc8a8640 /test/rubygems/test_gem_dependency_resolver_installer_set.rb
parent8f3934261ad4a7f486d2fffa9c961d7535675d8f (diff)
* lib/rubygems: Update to RubyGems master b9213d7. Changes include:
Fixed tests on Windows (I hope) by forcing platform for platform-dependent tests. Fixed File.exists? warnings. Improved testing infrastructure. * test/rubygems: ditto. * test/rdoc/test_rdoc_rubygems_hook.rb: Switch to util_spec like RubyGems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_dependency_resolver_installer_set.rb')
-rw-r--r--test/rubygems/test_gem_dependency_resolver_installer_set.rb8
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 516a4d0..6341c6b 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