diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-08 01:22:39 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-08 01:22:39 +0000 |
commit | 7ed9b794b4e3f3f9874f2ce19401461596d8a2c0 (patch) | |
tree | 5caaf13685de34b09d2949709a77b4c650b62741 /test/rubygems/test_gem_request_set.rb | |
parent | 866b438c21ff05dfeabba8bc9aa9850e415be607 (diff) | |
download | ruby-7ed9b794b4e3f3f9874f2ce19401461596d8a2c0.tar.gz |
* lib/rubygems: Update to RubyGems master 14749ce. This fixes bugs
handling of gem dependencies lockfiles (Gemfile.lock).
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_request_set.rb')
-rw-r--r-- | test/rubygems/test_gem_request_set.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_request_set.rb b/test/rubygems/test_gem_request_set.rb index 324d0cd7a8..aaff97ab4f 100644 --- a/test/rubygems/test_gem_request_set.rb +++ b/test/rubygems/test_gem_request_set.rb @@ -95,6 +95,7 @@ class TestGemRequestSet < Gem::TestCase fetcher.gem 'a', 1 fetcher.gem 'a', 2 fetcher.gem 'b', 1, 'a' => '>= 0' + fetcher.clear end rs = Gem::RequestSet.new @@ -107,7 +108,7 @@ GEM specs: a (1) b (1) - a + a (~> 1.0) PLATFORMS #{Gem::Platform::RUBY} @@ -127,6 +128,9 @@ DEPENDENCIES assert_includes installed, 'b-1' assert_includes installed, 'a-1' + + assert_path_exists File.join @gemhome, 'specifications', 'a-1.gemspec' + assert_path_exists File.join @gemhome, 'specifications', 'b-1.gemspec' end def test_load_gemdeps @@ -301,7 +305,9 @@ DEPENDENCIES rs.resolve - installed = rs.install_into @tempdir + installed = rs.install_into @tempdir do + assert_equal @tempdir, ENV['GEM_HOME'] + end assert_path_exists File.join @tempdir, 'specifications', 'a-1.gemspec' assert_path_exists File.join @tempdir, 'specifications', 'b-1.gemspec' |