summaryrefslogtreecommitdiff
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.rb26
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 6fd06d2..fdaac54 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