Sha256: edd5b6d7d13e8e3c9d19198201dafca363c4efdfac768adcfdece9dda55d9213

Contents?: true

Size: 629 Bytes

Versions: 27

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true
require_relative "helper"

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

27 entries across 27 versions & 1 rubygems

Version Path
rubygems-update-3.3.27 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.17 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.16 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.15 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.14 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.13 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.12 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.11 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.10 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.9 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.8 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.7 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.6 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.5 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.4 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.3 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.2 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.1 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.4.0 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.3.26 test/rubygems/test_gem_dependency_resolution_error.rb