Sha256: 2f31cc04d9d0421845a1a885cb62d8076b9d4d131d5d09a504b18f0fb90b54e6

Contents?: true

Size: 338 Bytes

Versions: 21

Compression:

Stored size: 338 Bytes

Contents

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

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rubygems-update-2.5.1 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.5.0 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.2.5 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.8 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.2.4 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.7 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.6 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.2.3 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.5 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.4 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.3 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.2 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.1 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.4.0 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.3.0 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.2.2 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.2.1 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.2.0 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.2.0.rc.1 test/rubygems/test_gem_source_fetch_problem.rb
rubygems-update-2.1.11 test/rubygems/test_gem_source_fetch_problem.rb