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:
parent
21e255913c
commit
0d29c3179c
1 changed files with 1 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue