From f8bcd57cb7223c59901cb9c73a4be976f3a583e8 Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 19 Dec 2013 03:05:37 +0000 Subject: * lib/rubygems: Update to RubyGems master af60443. Changes include: * Improved speed of `gem install --ignore-dependencies`. * Open read-write for exclusive flock. [ruby-trunk - Bug #9257] * Remove specification before install to prevent infinite loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/rubygems/test_gem_installer.rb') diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index 4d13c68505..615a9b57ba 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -645,9 +645,11 @@ gem 'other', version cache_file = File.join @gemhome, 'cache', @spec.file_name stub_exe = File.join @gemhome, 'bin', 'executable' rakefile = File.join gemdir, 'ext', 'a', 'Rakefile' + spec_file = File.join @gemhome, 'specifications', @spec.spec_name Gem.pre_install do |installer| refute_path_exists cache_file, 'cache file must not exist yet' + refute_path_exists spec_file, 'spec file must not exist yet' true end @@ -655,11 +657,13 @@ gem 'other', version assert_path_exists gemdir, 'gem install dir must exist' assert_path_exists rakefile, 'gem executable must exist' refute_path_exists stub_exe, 'gem executable must not exist' + refute_path_exists spec_file, 'spec file must not exist yet' true end Gem.post_install do |installer| assert_path_exists cache_file, 'cache file must exist' + assert_path_exists spec_file, 'spec file must exist' end @newspec = nil -- cgit v1.2.3