mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* 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
This commit is contained in:
parent
9c4ef4b191
commit
effdbf5936
90 changed files with 2489 additions and 1159 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue