mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* lib/rubygems: Update to RubyGems 2.2.2 prerelease to check fixes to
CI. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bd950a75b5
commit
ea2a00d785
40 changed files with 663 additions and 109 deletions
|
@ -70,6 +70,21 @@ class TestGemResolverGitSet < Gem::TestCase
|
|||
assert_equal [@set.specs['a']], found
|
||||
end
|
||||
|
||||
def test_find_all_local
|
||||
name, _, repository, = git_gem
|
||||
|
||||
@set.add_git_gem name, repository, 'master', false
|
||||
@set.remote = false
|
||||
|
||||
dependency = dep 'a', '~> 1.0'
|
||||
req = Gem::Resolver::DependencyRequest.new dependency, nil
|
||||
@reqs.add req
|
||||
|
||||
@set.prefetch @reqs
|
||||
|
||||
assert_empty @set.find_all dependency
|
||||
end
|
||||
|
||||
def test_root_dir
|
||||
assert_equal Gem.dir, @set.root_dir
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue