Skip to content

Commit d289848

Browse files
committed
Include all modules included into Test::Unit::TestCase
Some methods are separated into modules in test-unit now.
1 parent 74e3985 commit d289848

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/lib/core_assertions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def assert_ruby_status(args, test_stdin="", message=nil, **opt)
260260
ABORT_SIGNALS = Signal.list.values_at(*%w"ILL ABRT BUS SEGV TERM")
261261

262262
def separated_runner(out = nil)
263+
include(*Test::Unit::TestCase.ancestors.select {|c| !c.is_a?(Class) })
263264
out = out ? IO.new(out, 'w') : STDOUT
264265
at_exit {
265266
out.puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}"

0 commit comments

Comments
 (0)