diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-12 00:16:41 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-12 00:16:41 +0000 |
commit | 44d0a6dcd7563526a8b05ccdfa21d9425b94e62b (patch) | |
tree | e3bc8e5f1284e65a70c61de9a9d349d5fc8a8640 /test/rubygems/test_gem_commands_specification_command.rb | |
parent | 8f3934261ad4a7f486d2fffa9c961d7535675d8f (diff) | |
download | ruby-44d0a6dcd7563526a8b05ccdfa21d9425b94e62b.tar.gz |
* 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
Diffstat (limited to 'test/rubygems/test_gem_commands_specification_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_specification_command.rb | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/test/rubygems/test_gem_commands_specification_command.rb b/test/rubygems/test_gem_commands_specification_command.rb index fb28302cc3..80564f9dce 100644 --- a/test/rubygems/test_gem_commands_specification_command.rb +++ b/test/rubygems/test_gem_commands_specification_command.rb @@ -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 |