summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/syck/test_yamlstore.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/syck/test_yamlstore.rb b/test/syck/test_yamlstore.rb
index c94a745ac1..5363de5002 100644
--- a/test/syck/test_yamlstore.rb
+++ b/test/syck/test_yamlstore.rb
@@ -1,14 +1,17 @@
require 'test/unit'
+require 'syck'
+require 'yaml/store'
module Syck
class YAMLStoreTest < Test::Unit::TestCase
def setup
- require 'yaml/store'
+ @engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'syck'
@yamlstore_file = "yamlstore.tmp.#{Process.pid}"
@yamlstore = YAML::Store.new(@yamlstore_file)
end
def teardown
+ YAML::ENGINE.yamler = @engine
File.unlink(@yamlstore_file) rescue nil
end