summaryrefslogtreecommitdiff
path: root/test/psych/test_yamlstore.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_yamlstore.rb')
-rw-r--r--test/psych/test_yamlstore.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/psych/test_yamlstore.rb b/test/psych/test_yamlstore.rb
index 94f1330d37..19471b1e35 100644
--- a/test/psych/test_yamlstore.rb
+++ b/test/psych/test_yamlstore.rb
@@ -7,6 +7,7 @@ module Psych
class YAMLStoreTest < TestCase
def setup
+ @engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
@dir = Dir.mktmpdir("rubytest-file")
File.chown(-1, Process.gid, @dir)
@yamlstore_file = make_tmp_filename("yamlstore")
@@ -14,6 +15,7 @@ module Psych
end
def teardown
+ YAML::ENGINE.yamler = @engine
FileUtils.remove_entry_secure @dir
end