Sha256: f8790804b8691236213f3d9e0be24a4e16a27bea7774d24625126afdf2cb703b
Contents?: true
Size: 680 Bytes
Versions: 7
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true require 'rubygems/test_case' require 'rubygems/commands/list_command' class TestGemCommandsListCommand < Gem::TestCase def setup super @cmd = Gem::Commands::ListCommand.new spec_fetcher do |fetcher| fetcher.spec 'c', 1 end @fetcher.data["#{@gem_repo}Marshal.#{Gem.marshal_version}"] = proc do raise Gem::RemoteFetcher::FetchError end end def test_execute_installed @cmd.handle_options %w[c --installed] assert_raise Gem::MockGemUi::SystemExitException do use_ui @ui do @cmd.execute end end assert_equal "true\n", @ui.output assert_equal '', @ui.error end end
Version data entries
7 entries across 7 versions & 1 rubygems