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

* lib/test/unit.rb (MiniTest::Unit.new): extend before initialize.

[ruby-dev:41970]

* lib/test/unit.rb (MiniTest::Unit.autorun): use Test::Unit::Mini.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-08-13 07:12:18 +00:00
parent 05d9fabda1
commit d7d361a316
3 changed files with 16 additions and 5 deletions

View file

@ -1,3 +1,10 @@
Fri Aug 13 16:11:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (MiniTest::Unit.new): extend before initialize.
[ruby-dev:41970]
* lib/test/unit.rb (MiniTest::Unit.autorun): use Test::Unit::Mini.
Thu Aug 12 23:39:02 2010 Tanaka Akira <akr@fsij.org>
* ext/pathname/pathname.c (path_make_symlink): Pathname#make_symlink

View file

@ -151,16 +151,20 @@ module Test
end
class MiniTest::Unit
def self.new(*)
super
def self.new(*args, &block)
obj = allocate
.extend(Test::Unit::RunCount)
.extend(Test::Unit::Options)
obj.__send__(:initialize, *args, &block)
obj
end
class << self; undef autorun; end
def self.autorun
at_exit {
Test::Unit::RunCount.run_once {exit(new.run(ARGV) || true)}
Test::Unit::RunCount.run_once {
exit(Test::Unit::Mini.new.run(ARGV) || true)
}
} unless @@installed_at_exit
@@installed_at_exit = true
end

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
#define RUBY_RELEASE_DATE "2010-08-12"
#define RUBY_RELEASE_DATE "2010-08-13"
#define RUBY_PATCHLEVEL -1
#define RUBY_BRANCH_NAME "trunk"
@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2010
#define RUBY_RELEASE_MONTH 8
#define RUBY_RELEASE_DAY 12
#define RUBY_RELEASE_DAY 13
#include "ruby/version.h"