Sha256: 54b54416144c3744d1111668939ab0b68032007b67471ba41fc4ce209d935dae

Contents?: true

Size: 529 Bytes

Versions: 27

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true
require_relative "helper"

class TestGemUnsatisfiableDependencyError < Gem::TestCase
  def setup
    super

    @a_dep = dep "a", "~> 1"

    @req = Gem::Resolver::DependencyRequest.new @a_dep, nil

    @e = Gem::UnsatisfiableDependencyError.new @req
  end

  def test_errors
    assert_equal [], @e.errors

    @e.errors << :a

    assert_equal [:a], @e.errors
  end

  def test_name
    assert_equal "a", @e.name
  end

  def test_version
    assert_equal @a_dep.requirement, @e.version
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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