summaryrefslogtreecommitdiff
path: root/test/syck/test_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/syck/test_class.rb')
-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