aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_dependency_command.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-01 21:50:14 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-01 21:50:14 +0000
commiteffdbf5936cc090a618e13c8f9a1b5412ebab2fa (patch)
treec8410a18cbbe7ad013470fc06fef0c75ce0fd230 /test/rubygems/test_gem_commands_dependency_command.rb
parent9c4ef4b191a1e6b9abdbb21c7c709d1d0f2397e6 (diff)
downloadruby-effdbf5936cc090a618e13c8f9a1b5412ebab2fa.tar.gz
* lib/rubygems: Update to RubyGems HEAD(c202db2).
this version contains many enhancements see http://git.io/vtNwF * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 e22b240afe..1409162cec 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