diff options
Diffstat (limited to 'lib/rubygems/test_case.rb')
-rw-r--r-- | lib/rubygems/test_case.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index efc78edea2..82afb8a068 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -236,6 +236,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase @fetcher = nil Bundler.ui = Bundler::UI::Silent.new + @back_ui = Gem::DefaultUserInteraction.ui @ui = Gem::MockGemUi.new # This needs to be a new instance since we call use_ui(@ui) when we want to # capture output @@ -420,6 +421,8 @@ class Gem::TestCase < MiniTest::Unit::TestCase Gem::Specification._clear_load_cache Gem::Specification.unresolved_deps.clear Gem::refresh + + @back_ui.close end def common_installer_setup |