summaryrefslogtreecommitdiff
path: root/test/syck/test_yaml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/syck/test_yaml.rb')
-rw-r--r--test/syck/test_yaml.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/syck/test_yaml.rb b/test/syck/test_yaml.rb
index ece1b768e3..1a78e9d216 100644
--- a/test/syck/test_yaml.rb
+++ b/test/syck/test_yaml.rb
@@ -13,6 +13,15 @@ end
module Syck
class YAML_Unit_Tests < Test::Unit::TestCase
+ def setup
+ @current_engine = YAML::ENGINE.yamler
+ YAML::ENGINE.yamler = 'syck'
+ end
+
+ def teardown
+ YAML::ENGINE.yamler = @current_engine
+ end
+
#
# Convert between YAML and the object to verify correct parsing and
# emitting