summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_resolver_installer_set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_resolver_installer_set.rb')
-rw-r--r--test/rubygems/test_gem_resolver_installer_set.rb18
1 files changed, 7 insertions, 11 deletions
diff --git a/test/rubygems/test_gem_resolver_installer_set.rb b/test/rubygems/test_gem_resolver_installer_set.rb
index d7b917b..039582e 100644
--- a/test/rubygems/test_gem_resolver_installer_set.rb
+++ b/test/rubygems/test_gem_resolver_installer_set.rb
@@ -4,9 +4,8 @@ class TestGemResolverInstallerSet < Gem::TestCase
def test_add_always_install
spec_fetcher do |fetcher|
- fetcher.spec 'a', 1
- fetcher.spec 'a', 2
- fetcher.clear
+ fetcher.download 'a', 1
+ fetcher.download 'a', 2
end
util_gem 'a', 1
@@ -39,11 +38,10 @@ class TestGemResolverInstallerSet < Gem::TestCase
def test_add_always_install_platform
spec_fetcher do |fetcher|
- fetcher.spec 'a', 1
- fetcher.spec 'a', 2 do |s|
+ fetcher.download 'a', 1
+ fetcher.download 'a', 2 do |s|
s.platform = Gem::Platform.new 'x86-freebsd-9'
end
- fetcher.clear
end
set = Gem::Resolver::InstallerSet.new :both
@@ -139,8 +137,7 @@ class TestGemResolverInstallerSet < Gem::TestCase
def test_find_all_always_install
spec_fetcher do |fetcher|
- fetcher.spec 'a', 2
- fetcher.clear
+ fetcher.download 'a', 2
end
util_gem 'a', 1
@@ -156,9 +153,8 @@ class TestGemResolverInstallerSet < Gem::TestCase
def test_find_all_prerelease
spec_fetcher do |fetcher|
- fetcher.spec 'a', '1'
- fetcher.spec 'a', '1.a'
- fetcher.clear
+ fetcher.download 'a', '1'
+ fetcher.download 'a', '1.a'
end
set = Gem::Resolver::InstallerSet.new :both