diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-06 06:01:14 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-06 06:01:14 +0000 |
commit | 16267c7fee9441c19c7bf13a012fe847a1308d14 (patch) | |
tree | ecb999b03efbe4272614f2ffb4069a3f2b8bbabe /test/rubygems/test_gem_commands_query_command.rb | |
parent | 5910f07f19588764a9806f4d2d878136e1e38443 (diff) | |
download | ruby-16267c7fee9441c19c7bf13a012fe847a1308d14.tar.gz |
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.3.
Please see entries of 2.6.3 on
https://github.com/rubygems/rubygems/blob/master/History.txt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_commands_query_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_query_command.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_query_command.rb b/test/rubygems/test_gem_commands_query_command.rb index 78c15a1770..223f205b2d 100644 --- a/test/rubygems/test_gem_commands_query_command.rb +++ b/test/rubygems/test_gem_commands_query_command.rb @@ -537,6 +537,26 @@ a (2 universal-darwin, 1 ruby x86-linux) assert_equal '', @ui.error end + def test_execute_show_default_gems + spec_fetcher { |fetcher| fetcher.spec 'a', 2 } + + a1 = new_default_spec 'a', 1 + install_default_specs a1 + + use_ui @ui do + @cmd.execute + end + + expected = <<-EOF + +*** LOCAL GEMS *** + +a (2, default: 1) +EOF + + assert_equal expected, @ui.output + end + def test_execute_default_details spec_fetcher do |fetcher| fetcher.spec 'a', 2 |