summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_dependency_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_dependency_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_dependency_command.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_dependency_command.rb b/test/rubygems/test_gem_commands_dependency_command.rb
index e22b240..1409162 100644
--- a/test/rubygems/test_gem_commands_dependency_command.rb
+++ b/test/rubygems/test_gem_commands_dependency_command.rb
@@ -28,6 +28,8 @@ class TestGemCommandsDependencyCommand < Gem::TestCase
end
def test_execute_no_args
+ install_specs new_spec 'x', '2'
+
spec_fetcher do |fetcher|
fetcher.spec 'a', 1
fetcher.spec 'a', '2.a'
@@ -51,6 +53,8 @@ Gem dep_x-1
Gem pl-1-x86-linux
+Gem x-2
+
EOF
assert_equal expected, @ui.output
@@ -71,9 +75,11 @@ Gem pl-1-x86-linux
end
def test_execute_pipe_format
- util_spec 'foo' do |gem|
+ spec = util_spec 'foo' do |gem|
gem.add_dependency 'bar', '> 1'
end
+ install_specs util_spec 'bar', 2
+ install_specs spec
@cmd.options[:args] = %w[foo]
@cmd.options[:pipe_format] = true
@@ -164,6 +170,8 @@ ERROR: Only reverse dependencies for local gems are supported.
end
def test_execute_remote
+ install_specs new_spec 'bar', '2'
+
spec_fetcher do |fetcher|
fetcher.spec 'foo', 2, 'bar' => '> 1'
end