Sha256: c29553b524d20149187c836a6f6bb50d66726e1774c111c789bd134db00740eb
Contents?: true
Size: 723 Bytes
Versions: 29
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestRemoteFetchError < Gem::TestCase def test_password_redacted error = Gem::RemoteFetcher::FetchError.new('There was an error fetching', 'https://user:secret@gemsource.org') refute_match %r{secret}, error.to_s end def test_invalid_url error = Gem::RemoteFetcher::FetchError.new('There was an error fetching', 'https://::gemsource.org') assert_equal error.to_s, 'There was an error fetching (https://::gemsource.org)' end def test_to_s error = Gem::RemoteFetcher::FetchError.new('There was an error fetching', 'https://gemsource.org') assert_equal error.to_s, 'There was an error fetching (https://gemsource.org)' end end
Version data entries
29 entries across 29 versions & 1 rubygems