aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/gemutilities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/gemutilities.rb')
-rw-r--r--test/rubygems/gemutilities.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/rubygems/gemutilities.rb b/test/rubygems/gemutilities.rb
index fc27d6077c..9c94a128d0 100644
--- a/test/rubygems/gemutilities.rb
+++ b/test/rubygems/gemutilities.rb
@@ -130,11 +130,17 @@ class RubyGemTestCase < MiniTest::Unit::TestCase
@public_cert = File.expand_path File.join(File.dirname(__FILE__),
'public_cert.pem')
+ Gem.post_build_hooks.clear
Gem.post_install_hooks.clear
Gem.post_uninstall_hooks.clear
Gem.pre_install_hooks.clear
Gem.pre_uninstall_hooks.clear
+ Gem.post_build do |installer|
+ @post_build_hook_arg = installer
+ true
+ end
+
Gem.post_install do |installer|
@post_install_hook_arg = installer
end
@@ -145,6 +151,7 @@ class RubyGemTestCase < MiniTest::Unit::TestCase
Gem.pre_install do |installer|
@pre_install_hook_arg = installer
+ true
end
Gem.pre_uninstall do |uninstaller|