mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
21 lines
325 B
Ruby
21 lines
325 B
Ruby
|
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
|
||
|
|