summaryrefslogtreecommitdiff
path: root/test/syck/test_array.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-12 08:30:24 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-12 08:30:24 +0000
commitf2323dee148b5ca9a186e19432ac7b4fc28491d6 (patch)
tree86459212d5e597d28f65d23ad3de8d6ed5c8b962 /test/syck/test_array.rb
parent2e16e8a60e3ebdfe20e933c8447153915d474ee0 (diff)
Set yamler as syck.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/syck/test_array.rb')
-rw-r--r--test/syck/test_array.rb6
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