Sha256: ae6e8c7a177d8a0448ea1af37c06bceb7cf742d6cf0061ba620f20930b28f0a1
Contents?: true
Size: 598 Bytes
Versions: 25
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true require 'rubygems/test_case' class TestGemSourceFetchProblem < Gem::TestCase def test_exception source = Gem::Source.new @gem_repo error = RuntimeError.new 'test' sf = Gem::SourceFetchProblem.new source, error e = assert_raises RuntimeError do raise sf end assert_equal 'test', e.message end def test_password_redacted source = Gem::Source.new 'https://username:secret@gemsource.com' error = RuntimeError.new 'test' sf = Gem::SourceFetchProblem.new source, error refute_match sf.wordy, 'secret' end end
Version data entries
25 entries across 25 versions & 2 rubygems