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_dependency_resolver_dependency_request.rb

21 lines
325 B
Ruby
Raw Normal View History

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