summaryrefslogtreecommitdiff
path: root/test/psych/test_yamldbm.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 03:33:22 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 03:33:22 +0000
commita95be81ea20816d933d5ef1efccdf9d1b71bfe03 (patch)
tree14d4a76b52d2803000a3c18d224b44e7c281c93a /test/psych/test_yamldbm.rb
parentecb837865122577bfb43de55a422599d928d22c2 (diff)
Revert "* lib/yaml.rb: Remove Psych::EngineManager [Bug #8344]"
zzak is not the maintainer of yaml. This reverts commit r46097. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_yamldbm.rb')
-rw-r--r--test/psych/test_yamldbm.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb
index 23c7c9e..dba9eee 100644
--- a/test/psych/test_yamldbm.rb
+++ b/test/psych/test_yamldbm.rb
@@ -13,6 +13,7 @@ module Psych
class YAMLDBMTest < TestCase
def setup
+ @engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
@dir = Dir.mktmpdir("rubytest-file")
File.chown(-1, Process.gid, @dir)
@yamldbm_file = make_tmp_filename("yamldbm")
@@ -20,6 +21,7 @@ module Psych
end
def teardown
+ YAML::ENGINE.yamler = @engine
@yamldbm.clear
@yamldbm.close
FileUtils.remove_entry_secure @dir