Use Test::Unit namespace
This commit is contained in:
parent
df86d78a26
commit
e4b5ac9b9a
Notes:
git
2021-09-11 08:48:41 +09:00
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
require 'objspace'
|
require 'objspace'
|
||||||
|
|
||||||
class MiniTest::Unit::TestCase
|
class Test::Unit::TestCase
|
||||||
alias orig_run run
|
alias orig_run run
|
||||||
|
|
||||||
file = ENV['RUBY_TEST_ALL_PROFILE']
|
file = ENV['RUBY_TEST_ALL_PROFILE']
|
||||||
|
@ -113,7 +113,7 @@ module Test
|
|||||||
_report "okay"
|
_report "okay"
|
||||||
|
|
||||||
@options = @opts.dup
|
@options = @opts.dup
|
||||||
suites = MiniTest::Unit::TestCase.test_suites
|
suites = Test::Unit::TestCase.test_suites
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require File.realpath($1)
|
require File.realpath($1)
|
||||||
@ -122,7 +122,7 @@ module Test
|
|||||||
_report "ready"
|
_report "ready"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
_run_suites MiniTest::Unit::TestCase.test_suites-suites, $2.to_sym
|
_run_suites Test::Unit::TestCase.test_suites-suites, $2.to_sym
|
||||||
|
|
||||||
if @need_exit
|
if @need_exit
|
||||||
_report "bye"
|
_report "bye"
|
||||||
@ -193,7 +193,7 @@ end
|
|||||||
if $0 == __FILE__
|
if $0 == __FILE__
|
||||||
module Test
|
module Test
|
||||||
module Unit
|
module Unit
|
||||||
class TestCase < MiniTest::Unit::TestCase # :nodoc: all
|
class TestCase # :nodoc: all
|
||||||
undef on_parallel_worker?
|
undef on_parallel_worker?
|
||||||
def on_parallel_worker?
|
def on_parallel_worker?
|
||||||
true
|
true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user