From b0837c440eef2199eb1ef58f92b18cf0b5910d01 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 21 Aug 2012 22:30:43 +0000 Subject: Suppress warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_specification.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/rubygems') 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 -- cgit v1.2.3