aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_cleanup_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_cleanup_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_cleanup_command.rb11
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] = []