summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 03:54:55 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 03:54:55 +0000
commit4e8fed8f4bf414c2667535c2fc324a43250deeca (patch)
tree2f2dc5b99e97731aecec77db087de6829f353070
parent69cb0ca3e4893cbe90f610c2f39ea309ce05e1b5 (diff)
Specify yamler before runnnig tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/syck/test_class.rb9
1 files changed, 9 insertions, 0 deletions
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