mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems master b9213d7. Changes include:
Fixed tests on Windows (I hope) by forcing platform for platform-dependent tests. Fixed File.exists? warnings. Improved testing infrastructure. * test/rubygems: ditto. * test/rdoc/test_rdoc_rubygems_hook.rb: Switch to util_spec like RubyGems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f3934261a
commit
44d0a6dcd7
45 changed files with 1068 additions and 906 deletions
|
@ -10,7 +10,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_execute
|
||||
foo = quick_spec 'foo'
|
||||
foo = util_spec 'foo'
|
||||
|
||||
install_specs foo
|
||||
|
||||
|
@ -26,8 +26,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_execute_all
|
||||
quick_spec 'foo', '0.0.1'
|
||||
quick_spec 'foo', '0.0.2'
|
||||
util_spec 'foo', '0.0.1'
|
||||
util_spec 'foo', '0.0.2'
|
||||
|
||||
@cmd.options[:args] = %w[foo]
|
||||
@cmd.options[:all] = true
|
||||
|
@ -44,8 +44,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_execute_all_conflicts_with_version
|
||||
quick_spec 'foo', '0.0.1'
|
||||
quick_spec 'foo', '0.0.2'
|
||||
util_spec 'foo', '0.0.1'
|
||||
util_spec 'foo', '0.0.2'
|
||||
|
||||
@cmd.options[:args] = %w[foo]
|
||||
@cmd.options[:all] = true
|
||||
|
@ -89,8 +89,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_execute_exact_match
|
||||
quick_spec 'foo'
|
||||
quick_spec 'foo_bar'
|
||||
util_spec 'foo'
|
||||
util_spec 'foo_bar'
|
||||
|
||||
@cmd.options[:args] = %w[foo]
|
||||
|
||||
|
@ -118,7 +118,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_execute_file
|
||||
foo = quick_spec 'foo' do |s|
|
||||
foo = util_spec 'foo' do |s|
|
||||
s.files = %w[lib/code.rb]
|
||||
end
|
||||
|
||||
|
@ -188,10 +188,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
|
||||
def test_execute_remote_without_prerelease
|
||||
spec_fetcher do |fetcher|
|
||||
foo = fetcher.spec 'foo', '2.0.0'
|
||||
foo_pre = fetcher.spec 'foo', '2.0.1.pre'
|
||||
|
||||
install_specs foo, foo_pre
|
||||
fetcher.spec 'foo', '2.0.0'
|
||||
fetcher.spec 'foo', '2.0.1.pre'
|
||||
end
|
||||
|
||||
@cmd.options[:args] = %w[foo]
|
||||
|
@ -211,10 +209,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
|
||||
def test_execute_remote_with_prerelease
|
||||
spec_fetcher do |fetcher|
|
||||
foo = fetcher.spec 'foo', '2.0.0'
|
||||
foo_pre = fetcher.spec 'foo', '2.0.1.pre'
|
||||
|
||||
install_specs foo, foo_pre
|
||||
fetcher.spec 'foo', '2.0.0'
|
||||
fetcher.spec 'foo', '2.0.1.pre'
|
||||
end
|
||||
|
||||
@cmd.options[:args] = %w[foo]
|
||||
|
@ -234,7 +230,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_execute_ruby
|
||||
foo = quick_spec 'foo'
|
||||
foo = util_spec 'foo'
|
||||
|
||||
install_specs foo
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue