aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index c0dfd4bafe..f346240692 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -39,6 +39,8 @@ end
def setup
super
+ @orig_yamler = YAML::ENGINE.yamler
+ YAML::ENGINE.yamler = 'psych'
@a1 = quick_spec 'a', '1' do |s|
s.executable = 'exec'
@@ -65,6 +67,11 @@ end
load 'rubygems/syck_hack.rb'
end
+ def teardown
+ super
+ YAML::ENGINE.yamler = @orig_yamler
+ end
+
def test_self_attribute_names
expected_value = %w[
authors