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_cleanup_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_cleanup_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_cleanup_command.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/rubygems/test_gem_commands_cleanup_command.rb b/test/rubygems/test_gem_commands_cleanup_command.rb index 6fd06d26e0..fdaac545af 100644 --- a/test/rubygems/test_gem_commands_cleanup_command.rb +++ b/test/rubygems/test_gem_commands_cleanup_command.rb @@ -8,8 +8,8 @@ class TestGemCommandsCleanupCommand < Gem::TestCase @cmd = Gem::Commands::CleanupCommand.new - @a_1 = quick_spec 'a', 1 - @a_2 = quick_spec 'a', 2 + @a_1 = util_spec 'a', 1 + @a_2 = util_spec 'a', 2 install_gem @a_1 install_gem @a_2 @@ -39,8 +39,8 @@ class TestGemCommandsCleanupCommand < Gem::TestCase end def test_execute_all_dependencies - @b_1 = quick_spec 'b', 1 do |s| s.add_dependency 'a', '1' end - @b_2 = quick_spec 'b', 2 do |s| s.add_dependency 'a', '2' end + @b_1 = util_spec 'b', 1 do |s| s.add_dependency 'a', '1' end + @b_2 = util_spec 'b', 2 do |s| s.add_dependency 'a', '2' end install_gem @b_1 install_gem @b_2 @@ -60,8 +60,8 @@ class TestGemCommandsCleanupCommand < Gem::TestCase Gem.use_paths @gemhome, gemhome2 - @b_1 = quick_spec 'b', 1 - @b_2 = quick_spec 'b', 2 + @b_1 = util_spec 'b', 1 + @b_2 = util_spec 'b', 2 install_gem @b_1 install_gem @b_2 @@ -78,7 +78,7 @@ class TestGemCommandsCleanupCommand < Gem::TestCase end def test_execute_all_user - @a_1_1 = quick_spec 'a', '1.1' + @a_1_1 = util_spec 'a', '1.1' @a_1_1 = install_gem_user @a_1_1 # pick up user install path Gem::Specification.dirs = [Gem.dir, Gem.user_dir] @@ -97,7 +97,7 @@ class TestGemCommandsCleanupCommand < Gem::TestCase def test_execute_all_user_no_sudo FileUtils.chmod 0555, @gemhome - @a_1_1 = quick_spec 'a', '1.1' + @a_1_1 = util_spec 'a', '1.1' @a_1_1 = install_gem_user @a_1_1 # pick up user install path Gem::Specification.dirs = [Gem.dir, Gem.user_dir] @@ -125,10 +125,10 @@ class TestGemCommandsCleanupCommand < Gem::TestCase end def test_execute_keeps_older_versions_with_deps - @b_1 = quick_spec 'b', 1 - @b_2 = quick_spec 'b', 2 + @b_1 = util_spec 'b', 1 + @b_2 = util_spec 'b', 2 - @c = quick_spec 'c', 1 do |s| + @c = util_spec 'c', 1 do |s| s.add_dependency 'b', '1' end @@ -146,9 +146,9 @@ class TestGemCommandsCleanupCommand < Gem::TestCase def test_execute_ignore_default_gem_verbose Gem.configuration.verbose = :really - @b_1 = quick_spec 'b', 1 + @b_1 = util_spec 'b', 1 @b_default = new_default_spec "b", "2" - @b_2 = quick_spec 'b', 3 + @b_2 = util_spec 'b', 3 install_gem @b_1 install_default_specs @b_default |