summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_package_task.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-16 14:42:34 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commit01fcc291dc8a4c43c0763ebbb04e2e9e137cc738 (patch)
treecdc717984acfbf88a6dbf102b4812df7149c6900 /test/rubygems/test_gem_package_task.rb
parent5c35fedaf2586afab27d7e11a83b5aa32cbf727c (diff)
downloadruby-01fcc291dc8a4c43c0763ebbb04e2e9e137cc738.tar.gz
[rubygems/rubygems] Don't leave side effects on verbosity
https://github.com/rubygems/rubygems/commit/c58e711598
Diffstat (limited to 'test/rubygems/test_gem_package_task.rb')
-rw-r--r--test/rubygems/test_gem_package_task.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_package_task.rb b/test/rubygems/test_gem_package_task.rb
index 02cd7b0278..da1c4aa960 100644
--- a/test/rubygems/test_gem_package_task.rb
+++ b/test/rubygems/test_gem_package_task.rb
@@ -9,9 +9,17 @@ class TestGemPackageTask < Gem::TestCase
super
Rake.application = Rake::Application.new
+
+ @original_rake_fileutils_verbosity = RakeFileUtils.verbose_flag
RakeFileUtils.verbose_flag = false
end
+ def teardown
+ RakeFileUtils.verbose_flag = @original_rake_fileutils_verbosity
+
+ super
+ end
+
def test_gem_package
gem = Gem::Specification.new do |g|
g.name = "pkgr"