1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/rubygems/test_gem_resolver_dependency_request.rb

21 lines
305 B
Ruby
Raw Normal View History

require 'rubygems/test_case'
class TestGemResolverDependencyRequest < Gem::TestCase
def setup
super
@DR = Gem::Resolver::DependencyRequest
end
def test_requirement
dependency = dep 'a', '>= 1'
dr = @DR.new dependency, nil
assert_equal dependency, dr.dependency
end
end