diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 08:39:12 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 08:39:12 +0000 |
commit | 8289771e326006cc4e15a667e3eff3a72cfb3327 (patch) | |
tree | f6d367888b42848fd6a660fad57fa2020e38c097 /test/rubygems/test_gem_commands_query_command.rb | |
parent | 40d8543fbdec5485a638a2cb1008089d106b978d (diff) | |
download | ruby-8289771e326006cc4e15a667e3eff3a72cfb3327.tar.gz |
Import RubyGems 1.0.0, r1575
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14361 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 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_commands_query_command.rb b/test/rubygems/test_gem_commands_query_command.rb index e2b6a45e92..4430ccfd33 100644 --- a/test/rubygems/test_gem_commands_query_command.rb +++ b/test/rubygems/test_gem_commands_query_command.rb @@ -10,13 +10,17 @@ class TestGemCommandsQueryCommand < RubyGemTestCase @foo_gem = quick_gem 'foo' do |spec| spec.summary = 'This is a lot of text. ' * 5 end + @foo_gem_p = quick_gem 'foo' do |spec| + spec.summary = 'This is a lot of text. ' * 5 + spec.platform = Gem::Platform::CURRENT + end @bar_gem = quick_gem 'bar' @cmd = Gem::Commands::QueryCommand.new end def test_execute - util_setup_source_info_cache @foo_gem + util_setup_source_info_cache @foo_gem, @foo_gem_p @cmd.handle_options %w[-r] @@ -28,7 +32,7 @@ class TestGemCommandsQueryCommand < RubyGemTestCase *** REMOTE GEMS *** -foo (0.0.2) +foo (2) EOF assert_equal expected, @ui.output @@ -48,7 +52,7 @@ foo (0.0.2) *** REMOTE GEMS *** -foo (0.0.2) +foo (2) This is a lot of text. This is a lot of text. This is a lot of text. This is a lot of text. This is a lot of text. EOF |