Sha256: d679a2fd87517fe114b076e971baf8cde4bfcf75b3a77aa737a570426b596b5b

Contents?: true

Size: 346 Bytes

Versions: 19

Compression:

Stored size: 346 Bytes

Contents

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

19 entries across 19 versions & 1 rubygems

Version Path
rubygems-update-2.5.1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.5.0 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.2.5 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.8 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.2.4 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.7 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.6 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.2.3 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.5 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.4 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.3 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.2 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.4.0 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.3.0 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.2.2 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.2.1 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.2.0 test/rubygems/test_gem_resolver_requirement_list.rb
rubygems-update-2.2.0.rc.1 test/rubygems/test_gem_resolver_requirement_list.rb