Sha256: 2e0c58c573c4b42e0b365491989695b5d41357e93b4d774545744313c5685785

Contents?: true

Size: 373 Bytes

Versions: 26

Compression:

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

26 entries across 26 versions & 1 rubygems

Version Path
rubygems-update-3.2.24 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.23 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.22 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.21 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.20 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.19 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.18 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.17 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.16 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.15 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.14 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.13 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.12 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.11 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.10 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.9 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.8 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.7 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.6 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-3.2.5 test/rubygems/test_gem_resolver_requirement_list.rb