From f2323dee148b5ca9a186e19432ac7b4fc28491d6 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 12 Dec 2011 08:30:24 +0000 Subject: Set yamler as syck. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/syck/test_array.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/syck/test_array.rb') diff --git a/test/syck/test_array.rb b/test/syck/test_array.rb index 7ffa1b404f..59c9f469ce 100644 --- a/test/syck/test_array.rb +++ b/test/syck/test_array.rb @@ -4,9 +4,15 @@ require 'yaml' module Syck class TestArray < Test::Unit::TestCase def setup + @current_engine = YAML::ENGINE.yamler + YAML::ENGINE.yamler = 'syck' @list = [{ :a => 'b' }, 'foo'] end + def teardown + YAML::ENGINE.yamler = @current_engine + end + def test_to_yaml assert_equal @list, YAML.load(@list.to_yaml) end -- cgit v1.2.3