1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/testunit/tests_for_parallel/misc.rb
sorah e9c22a6f1a * test/testunit/tests_for_parallel/misc.rb: Fix bug in r30947.
* lib/test/unit.rb, lib/test/unit/assertions.rb: For this test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-24 01:08:51 +00:00

36 lines
759 B
Ruby

# FIXME: more portability code
if caller(7) && /block in non_options/ =~ caller(7)[0]
class TestCaseForParallelTest < Test::Unit::TestCase;end
else
module Test
module Unit
class Worker
def run_tests
_run_anything :ptest
end
end
class Runner
def run_tests
_run_anything :ptest
end
end
end
end
module MiniTest
class Unit
class << TestCase
alias ptest_suites test_suites
def ptest_methods;[];end
end
end
end
class TestCaseForParallelTest < Test::Unit::TestCase
class << self
undef ptest_methods
def ptest_methods
public_instance_methods(true).grep(/^ptest/).map { |m| m.to_s }
end
end
end
end