summaryrefslogtreecommitdiff
path: root/test/psych/test_yamldbm.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-07 11:22:22 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-07 11:22:22 +0000
commita27349a4cb97f6db907388d5013100493f5dec73 (patch)
tree5197e280f24b14fef5366acc11a87ef6461b9ea6 /test/psych/test_yamldbm.rb
parente4e5b7df4cca2cedba1ec2b52f75c450a0c618ce (diff)
* test/psych/test_yamldbm.rb: Test case should inherit from MiniTest,
load psych/helper so that psych and friends are loaded. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_yamldbm.rb')
-rw-r--r--test/psych/test_yamldbm.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb
index 1b5d444..bff1363 100644
--- a/test/psych/test_yamldbm.rb
+++ b/test/psych/test_yamldbm.rb
@@ -1,16 +1,17 @@
# -*- coding: UTF-8 -*-
+
+require 'psych/helper'
+require 'tmpdir'
+
begin
- require 'test/unit'
- require 'psych'
require 'yaml/dbm'
- require 'tmpdir'
rescue LoadError
end
module Psych
::Psych::DBM = ::YAML::DBM unless defined?(::Psych::DBM)
- class YAMLDBMTest < Test::Unit::TestCase
+ class YAMLDBMTest < TestCase
def setup
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
@dir = Dir.mktmpdir("rubytest-file")