diff options
Diffstat (limited to 'jni/ruby/test/rubygems/test_gem_resolver_requirement_list.rb')
-rw-r--r-- | jni/ruby/test/rubygems/test_gem_resolver_requirement_list.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jni/ruby/test/rubygems/test_gem_resolver_requirement_list.rb b/jni/ruby/test/rubygems/test_gem_resolver_requirement_list.rb new file mode 100644 index 0000000..fd9dccb --- /dev/null +++ b/jni/ruby/test/rubygems/test_gem_resolver_requirement_list.rb @@ -0,0 +1,20 @@ +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 + |