mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems master cee6788. Changes:
Fix test failure on vc10-x64 Server on rubyci.org due to attempting to File.chmod where it is not supported. Continuing work on improved gem dependencies file (Gemfile) support. * test: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4fa08bbaf8
commit
05ca2faba2
11 changed files with 128 additions and 21 deletions
|
@ -17,6 +17,30 @@ class TestGemRequestSet < Gem::TestCase
|
|||
assert_equal [Gem::Dependency.new("a", "=2")], rs.dependencies
|
||||
end
|
||||
|
||||
def test_import
|
||||
rs = Gem::RequestSet.new
|
||||
rs.gem 'a'
|
||||
|
||||
rs.import [dep('b')]
|
||||
|
||||
assert_equal [dep('a'), dep('b')], rs.dependencies
|
||||
end
|
||||
|
||||
def test_load_gemdeps
|
||||
rs = Gem::RequestSet.new
|
||||
|
||||
Tempfile.open 'gem.deps.rb' do |io|
|
||||
io.puts 'gem "a"'
|
||||
io.flush
|
||||
|
||||
rs.load_gemdeps io.path
|
||||
end
|
||||
|
||||
assert_equal [dep('a')], rs.dependencies
|
||||
|
||||
assert rs.vendor_set
|
||||
end
|
||||
|
||||
def test_resolve
|
||||
a = util_spec "a", "2", "b" => ">= 2"
|
||||
b = util_spec "b", "2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue