diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-12 08:30:24 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-12 08:30:24 +0000 |
commit | f2323dee148b5ca9a186e19432ac7b4fc28491d6 (patch) | |
tree | 86459212d5e597d28f65d23ad3de8d6ed5c8b962 | |
parent | 2e16e8a60e3ebdfe20e933c8447153915d474ee0 (diff) | |
download | ruby-f2323dee148b5ca9a186e19432ac7b4fc28491d6.tar.gz |
Set yamler as syck.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/syck/test_array.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |