aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_specification.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 2e7fe689bb..fa2f0cef75 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1,3 +1,4 @@
+# -*- coding: us-ascii -*-
require 'rubygems/test_case'
require 'stringio'
require 'rubygems/specification'
@@ -1945,10 +1946,13 @@ end
begin
require "yaml"
old_engine = YAML::ENGINE.yamler
+ verbose, $VERBOSE = $VERBOSE, nil
YAML::ENGINE.yamler = 'syck'
load 'rubygems/syck_hack.rb'
rescue NameError
# probably on 1.8, ignore
+ ensure
+ $VERBOSE = verbose
end
yield