aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_installer.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-19 03:05:37 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-19 03:05:37 +0000
commitf8bcd57cb7223c59901cb9c73a4be976f3a583e8 (patch)
treebaa2c8a7badab14460fb28d17aaefb1cb021a055 /test/rubygems/test_gem_installer.rb
parent4cd675ea9edeaeee7a640dd10037b92318ad6844 (diff)
downloadruby-f8bcd57cb7223c59901cb9c73a4be976f3a583e8.tar.gz
* 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
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r--test/rubygems/test_gem_installer.rb4
1 files changed, 4 insertions, 0 deletions
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