diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_cleanup_command.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_cleanup_command.rb b/test/rubygems/test_gem_commands_cleanup_command.rb index 1bdfca0b0a..26b1fe7b0c 100644 --- a/test/rubygems/test_gem_commands_cleanup_command.rb +++ b/test/rubygems/test_gem_commands_cleanup_command.rb @@ -23,6 +23,21 @@ class TestGemCommandsCleanupCommand < Gem::TestCase refute_path_exists @a_1.gem_dir 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 + + install_gem @b_1 + install_gem @b_2 + + @cmd.options[:args] = [] + + @cmd.execute + + refute_path_exists @a_1.gem_dir + refute_path_exists @b_1.gem_dir + end + def test_execute_all gemhome2 = File.join @tempdir, 'gemhome2' |