1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
tenderlove 2011-11-07 11:22:22 +00:00
parent e4e5b7df4c
commit a27349a4cb
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Mon Nov 7 20:18:29 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* 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 <akr@fsij.org> Mon Nov 7 20:15:44 2011 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: check dbm_pagfno() and dbm_dirfno(). * ext/dbm/extconf.rb: check dbm_pagfno() and dbm_dirfno().

View file

@ -1,16 +1,17 @@
# -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
begin
require 'test/unit' require 'psych/helper'
require 'psych'
require 'yaml/dbm'
require 'tmpdir' require 'tmpdir'
begin
require 'yaml/dbm'
rescue LoadError rescue LoadError
end end
module Psych module Psych
::Psych::DBM = ::YAML::DBM unless defined?(::Psych::DBM) ::Psych::DBM = ::YAML::DBM unless defined?(::Psych::DBM)
class YAMLDBMTest < Test::Unit::TestCase class YAMLDBMTest < TestCase
def setup def setup
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych' @engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
@dir = Dir.mktmpdir("rubytest-file") @dir = Dir.mktmpdir("rubytest-file")