[前][次][番号順一覧][スレッド一覧]

ruby-changes:21604

From: tenderlove <ko1@a...>
Date: Mon, 7 Nov 2011 20:22:32 +0900 (JST)
Subject: [ruby-changes:21604] tenderlove:r33653 (trunk): * test/psych/test_yamldbm.rb: Test case should inherit from MiniTest,

tenderlove	2011-11-07 20:22:22 +0900 (Mon, 07 Nov 2011)

  New Revision: 33653

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33653

  Log:
    * test/psych/test_yamldbm.rb: Test case should inherit from MiniTest,
      load psych/helper so that psych and friends are loaded.

  Modified files:
    trunk/ChangeLog
    trunk/test/psych/test_yamldbm.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33652)
+++ ChangeLog	(revision 33653)
@@ -1,3 +1,8 @@
+Mon Nov  7 20:18:29 2011  Aaron Patterson <aaron@t...>
+
+	* 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@f...>
 
 	* ext/dbm/extconf.rb: check dbm_pagfno() and dbm_dirfno().
Index: test/psych/test_yamldbm.rb
===================================================================
--- test/psych/test_yamldbm.rb	(revision 33652)
+++ test/psych/test_yamldbm.rb	(revision 33653)
@@ -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")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]