diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-08 06:01:49 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-08 06:01:49 +0000 |
commit | 75894547f50888b86f15c118b6e047d8b9a94a74 (patch) | |
tree | 09640cd4d0e802d5071f2ed71934c230405d5bf8 /test/rubygems/test_gem_commands_cleanup_command.rb | |
parent | ee68f78c2462908882e3394f8a91631ec4a45beb (diff) |
* lib/rubygems/commands/cleanup_command.rb: Skip default gems when
cleaning up.
* test/rubygems/test_gem_commands_cleanup_command.rb: Test for above.
* lib/rubygems/commands/query_command.rb: Fixed listing remote gems.
* lib/rubygems/dependency_installer.rb: Ignore non-files when looking
for local gems.
* test/rubygems/test_gem_dependency_installer.rb: Test for above.
* lib/rubygems/uninstaller.rb: The user must confirm uninstalling gems
that have dependencies.
* test/rubygems/test_gem_uninstaller.rb: Test for above.
* lib/rubygems.rb (module Gem): Updated version.
* test/rubygems/*.pem: Updated to run in FIPS mode.
* test/rubygems/test_gem_security.rb: ditto.
* test/rubygems/test_gem_security_signer.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38272 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 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_cleanup_command.rb b/test/rubygems/test_gem_commands_cleanup_command.rb index 0cf2bd6291..1bdfca0b0a 100644 --- a/test/rubygems/test_gem_commands_cleanup_command.rb +++ b/test/rubygems/test_gem_commands_cleanup_command.rb @@ -113,5 +113,25 @@ class TestGemCommandsCleanupCommand < Gem::TestCase assert_path_exists @b_1.gem_dir end + def test_execute_ignore_default_gem_verbose + Gem.configuration.verbose = :really + + @b_1 = quick_spec 'b', 1 + @b_default = new_default_spec "b", "2" + @b_2 = quick_spec 'b', 3 + + install_gem @b_1 + install_default_specs @b_default + install_gem @b_2 + + @cmd.options[:args] = [] + + use_ui @ui do + @cmd.execute + end + + assert_match %r%^Skipped default gems: b-2%, @ui.output + assert_empty @ui.error + end end |