Sha256: 96ec1a8618b6e3426399e65f275f685e206c4c1e478f799313479f50d7c2c016

Contents?: true

Size: 376 Bytes

Versions: 30

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true
require 'rubygems/test_case'

class TestGemResolverRequirementList < Gem::TestCase

  def setup
    super

    @list = Gem::Resolver::RequirementList.new
  end

  def test_each
    dep = Gem::Dependency.new "a", "= 1"
    req = Gem::Resolver::DependencyRequest.new(dep, nil)
    @list.add req

    assert_equal [req], @list.each.to_a
  end

end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
rubygems-update-2.7.11 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.10 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.9 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.8 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.7 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.6 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.5 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.4 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.4.pre1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.3 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.2 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.7.0 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.6.14 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.6.13 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.6.12 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.6.11 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.6.10 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.6.9 test/rubygems/test_gem_resolver_requirement_list.rb
ruby-compiler-0.1.1 vendor/ruby/test/rubygems/test_gem_resolver_requirement_list.rb