summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_dependency_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_dependency_list.rb')
-rw-r--r--test/rubygems/test_gem_dependency_list.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_dependency_list.rb b/test/rubygems/test_gem_dependency_list.rb
index 4201a31..348f111 100644
--- a/test/rubygems/test_gem_dependency_list.rb
+++ b/test/rubygems/test_gem_dependency_list.rb
@@ -12,8 +12,11 @@ class TestGemDependencyList < Gem::TestCase
def setup
super
+ util_clear_gems
+
@deplist = Gem::DependencyList.new
+ # TODO: switch to new_spec
@a1 = quick_spec 'a', '1'
@a2 = quick_spec 'a', '2'
@a3 = quick_spec 'a', '3'
@@ -28,13 +31,10 @@ class TestGemDependencyList < Gem::TestCase
end
def test_self_from_source_index
- hash = {
- 'a-1' => @a1,
- 'b-2' => @b2,
- }
+ util_clear_gems
+ install_specs @a1, @b2
- si = Gem::SourceIndex.new hash
- deps = Gem::DependencyList.from_source_index si
+ deps = Deprecate.skip_during { Gem::DependencyList.from_source_index }
assert_equal %w[b-2 a-1], deps.dependency_order.map { |s| s.full_name }
end