Sha256: 4b6706ed881bc78c17412042f8d7a88c9b5bef73bb4f39d383e0a1dc95e25a85

Contents?: true

Size: 375 Bytes

Versions: 21

Compression:

Stored size: 375 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

21 entries across 21 versions & 1 rubygems

Version Path
rubygems-update-3.1.6 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.5 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.9 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.0.rc.1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.4 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.3 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.8 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.7 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.2 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.0 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.0.pre3 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.0.pre2 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.1.0.pre1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.6 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.5 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.4 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.3 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.2 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.0.1 test/rubygems/test_gem_resolver_requirement_list.rb