From a27349a4cb97f6db907388d5013100493f5dec73 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 7 Nov 2011 11:22:22 +0000 Subject: * 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 --- test/psych/test_yamldbm.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb index 1b5d4447b4..bff13635ab 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") -- cgit v1.2.3