aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_installer.rb
diff options
context:
space:
mode:
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