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

[ruby/stringio] Include all modules included into Test::Unit::TestCase

Some methods are separated into modules in test-unit now.

https://github.com/ruby/stringio/commit/d289848994
This commit is contained in:
Nobuyoshi Nakada 2021-03-07 20:05:21 +09:00 committed by Hiroshi SHIBATA
parent 21e255913c
commit 0d29c3179c

View file

@ -260,6 +260,7 @@ module Test
ABORT_SIGNALS = Signal.list.values_at(*%w"ILL ABRT BUS SEGV TERM")
def separated_runner(out = nil)
include(*Test::Unit::TestCase.ancestors.select {|c| !c.is_a?(Class) })
out = out ? IO.new(out, 'w') : STDOUT
at_exit {
out.puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}"