提交 fa13d8e6 编写于 作者: A Aaron Patterson

rm minitest monkey patch

上级 07bd5738
......@@ -15,23 +15,6 @@
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册