Sha256: d79676c8bf02165f60bcec185f4180eed2711d672e6d68dfcd0e70e285e15dec

Contents?: true

Size: 605 Bytes

Versions: 19

Compression:

Stored size: 605 Bytes

Contents

require 'rubygems/test_case'

class TestGemDependencyResolutionError < Gem::TestCase

  def setup
    super

    @DR = Gem::Resolver

    @spec = util_spec 'a', 2

    @a1_req = @DR::DependencyRequest.new dep('a', '= 1'), nil
    @a2_req = @DR::DependencyRequest.new dep('a', '= 2'), nil

    @activated = @DR::ActivationRequest.new @spec, @a2_req

    @conflict = @DR::Conflict.new @a1_req, @activated

    @error = Gem::DependencyResolutionError.new @conflict
  end

  def test_message
    assert_match %r%^conflicting dependencies a \(= 1\) and a \(= 2\)$%,
                 @error.message
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

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