summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_dependency.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_dependency.rb')
-rw-r--r--test/rubygems/test_gem_dependency.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_dependency.rb b/test/rubygems/test_gem_dependency.rb
index c43ff0e..4c27ce7 100644
--- a/test/rubygems/test_gem_dependency.rb
+++ b/test/rubygems/test_gem_dependency.rb
@@ -294,10 +294,11 @@ class TestGemDependency < Gem::TestCase
end
def test_to_spec
- util_spec 'a', '1'
+ a_1 = util_spec 'a', '1'
a_2 = util_spec 'a', '2'
a_dep = dep 'a', '>= 0'
+ install_specs a_1, a_2
assert_equal a_2, a_dep.to_spec
end
@@ -307,6 +308,7 @@ class TestGemDependency < Gem::TestCase
a_1_1_a = util_spec 'a', '1.1.a'
a_dep = dep 'a', '>= 0'
+ install_specs a_1, a_1_1_a
assert_equal a_1, a_dep.to_spec
@@ -317,7 +319,8 @@ class TestGemDependency < Gem::TestCase
end
def test_to_specs_suggests_other_versions
- a = util_spec 'a', '1.0', 'b' => '>= 1.0'
+ a = util_spec 'a', '1.0'
+ install_specs a
a_file = File.join a.gem_dir, 'lib', 'a_file.rb'
@@ -335,7 +338,8 @@ class TestGemDependency < Gem::TestCase
end
def test_to_specs_indicates_total_gem_set_size
- a = util_spec 'a', '1.0', 'b' => '>= 1.0'
+ a = util_spec 'a', '1.0'
+ install_specs a
a_file = File.join a.gem_dir, 'lib', 'a_file.rb'