зеркало из https://github.com/github/ruby.git
* 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:
Родитель
e4e5b7df4c
Коммит
a27349a4cb
|
@ -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>
|
||||
|
||||
* ext/dbm/extconf.rb: check dbm_pagfno() and dbm_dirfno().
|
||||
|
|
|
@ -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")
|
||||
|
|
Загрузка…
Ссылка в новой задаче