From 4e8fed8f4bf414c2667535c2fc324a43250deeca Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 13 Jun 2011 03:54:55 +0000 Subject: Specify yamler before runnnig tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/syck/test_class.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/syck') diff --git a/test/syck/test_class.rb b/test/syck/test_class.rb index 803a1f14b4..983cf4192c 100644 --- a/test/syck/test_class.rb +++ b/test/syck/test_class.rb @@ -3,6 +3,15 @@ require 'yaml' module Syck class TestClass < Test::Unit::TestCase + def setup + @engine = YAML::ENGINE.yamler + YAML::ENGINE.yamler = 'syck' + end + + def teardown + YAML::ENGINE.yamler = @engine + end + def test_to_yaml assert_raises(::TypeError) do TestClass.to_yaml -- cgit v1.2.3