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

rm minitest monkey patch

This commit is contained in:
Aaron Patterson 2013-11-16 14:31:35 -08:00
parent 07bd57385f
commit fa13d8e6d9

View file

@ -15,23 +15,6 @@ begin
rescue LoadError
end
module Minitest # :nodoc:
class << self
remove_method :__run
end
def self.__run reporter, options # :nodoc:
# FIXME: MT5's runnables is not ordered. This is needed because
# we have tests with cross-class order-dependent bugs.
suites = Runnable.runnables.sort_by { |ts| ts.name.to_s }
parallel, serial = suites.partition { |s| s.test_order == :parallel }
ParallelEach.new(parallel).map { |suite| suite.run reporter, options } +
serial.map { |suite| suite.run reporter, options }
end
end
module ActiveSupport
class TestCase < ::Minitest::Test
Assertion = Minitest::Assertion