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 --- ChangeLog | 5 +++++ test/psych/test_yamldbm.rb | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67b4e12bb5..e0d9d70033 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 7 20:18:29 2011 Aaron Patterson + + * test/psych/test_yamldbm.rb: Test case should inherit from MiniTest, + load psych/helper so that psych and friends are loaded. + Mon Nov 7 20:15:44 2011 Tanaka Akira * ext/dbm/extconf.rb: check dbm_pagfno() and dbm_dirfno(). 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