summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_query_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_query_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_query_command.rb10
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