* lib/rubygems: RubyGems 2.2.2 which contains the following bug fixes:

http://rubygems.rubyforge.org/rubygems-update/History_txt.html#label-2.2.2+%2F+2014-02-05
  https://bugs.ruby-lang.org/issues/9489


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-02-06 02:59:36 +00:00
parent 39cb784095
commit 9b9d3bac4d
64 changed files with 934 additions and 299 deletions

View file

@ -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