diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-01 21:50:14 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-01 21:50:14 +0000 |
commit | 7bf7a4a33be8387d9ff1ddfb762f97caeb8021f5 (patch) | |
tree | c8410a18cbbe7ad013470fc06fef0c75ce0fd230 /test/rubygems/test_gem_commands_cleanup_command.rb | |
parent | d3ae99642eb6111e0a210e1e7dba32403a498335 (diff) | |
download | ruby-7bf7a4a33be8387d9ff1ddfb762f97caeb8021f5.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_cleanup_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_cleanup_command.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_commands_cleanup_command.rb b/test/rubygems/test_gem_commands_cleanup_command.rb index fdaac545af..e8ad35fe8e 100644 --- a/test/rubygems/test_gem_commands_cleanup_command.rb +++ b/test/rubygems/test_gem_commands_cleanup_command.rb @@ -1,5 +1,6 @@ require 'rubygems/test_case' require 'rubygems/commands/cleanup_command' +require 'rubygems/installer' class TestGemCommandsCleanupCommand < Gem::TestCase @@ -78,8 +79,8 @@ class TestGemCommandsCleanupCommand < Gem::TestCase end def test_execute_all_user - @a_1_1 = util_spec 'a', '1.1' - @a_1_1 = install_gem_user @a_1_1 # pick up user install path + @a_1_1, = util_gem 'a', '1.1' + @a_1_1 = install_gem @a_1_1 # pick up user install path Gem::Specification.dirs = [Gem.dir, Gem.user_dir] @@ -97,8 +98,8 @@ class TestGemCommandsCleanupCommand < Gem::TestCase def test_execute_all_user_no_sudo FileUtils.chmod 0555, @gemhome - @a_1_1 = util_spec 'a', '1.1' - @a_1_1 = install_gem_user @a_1_1 # pick up user install path + @a_1_1, = util_gem 'a', '1.1' + @a_1_1 = install_gem @a_1_1, :user_install => true # pick up user install path Gem::Specification.dirs = [Gem.dir, Gem.user_dir] @@ -132,9 +133,9 @@ class TestGemCommandsCleanupCommand < Gem::TestCase s.add_dependency 'b', '1' end - install_gem @c install_gem @b_1 install_gem @b_2 + install_gem @c @cmd.options[:args] = [] |