summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_outdated_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_outdated_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_outdated_command.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_outdated_command.rb b/test/rubygems/test_gem_commands_outdated_command.rb
index 57939b8088..c4af421f5d 100644
--- a/test/rubygems/test_gem_commands_outdated_command.rb
+++ b/test/rubygems/test_gem_commands_outdated_command.rb
@@ -28,4 +28,22 @@ class TestGemCommandsOutdatedCommand < Gem::TestCase
assert_equal "foo (0.2 < 2.0)\n", @ui.output
assert_equal "", @ui.error
end
+
+ def test_execute_with_up_to_date_platform_specific_gem
+ spec_fetcher do |fetcher|
+ fetcher.download 'foo', '2.0'
+
+ fetcher.gem 'foo', '1.0'
+ fetcher.gem 'foo', '2.0' do |s|
+ s.platform = Gem::Platform.local
+ end
+ end
+
+ use_ui @ui do
+ @cmd.execute
+ end
+
+ assert_equal "", @ui.output
+ assert_equal "", @ui.error
+ end
end