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