Sha256: ff2c1a730595444854103d5734398cd7c14566d51ae95f8bfdf1b1bb9ff7cecc
Contents?: true
Size: 725 Bytes
Versions: 10
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true require 'rubygems/test_case' 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 error.to_s, 'secret' 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
10 entries across 10 versions & 1 rubygems