ruby-changes:19994
From: naruse <ko1@a...>
Date: Mon, 13 Jun 2011 12:56:51 +0900 (JST)
Subject: [ruby-changes:19994] naruse:r32042 (trunk): Specify yamler before runnnig tests.
naruse 2011-06-13 12:54:55 +0900 (Mon, 13 Jun 2011) New Revision: 32042 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32042 Log: Specify yamler before runnnig tests. Modified files: trunk/test/syck/test_class.rb Index: test/syck/test_class.rb =================================================================== --- test/syck/test_class.rb (revision 32041) +++ test/syck/test_class.rb (revision 32042) @@ -3,6 +3,15 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/