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.25 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.3.24 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.3.23 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.3.22 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.3.21 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.3.20 test/rubygems/test_gem_dependency_resolution_error.rb
rubygems-update-3.3.19 test/rubygems/test_gem_dependency_resolution_error.rb