test/helper.rb in cri-2.2.1 vs test/helper.rb in cri-2.3.0
- old
+ new
@@ -11,11 +11,11 @@
def teardown
uncapture_io(*@orig_io)
end
def capture_io_while(&block)
- orig_io = capture_io
+ orig_io = capture_io
block.call
[ $stdout.string, $stderr.string ]
ensure
uncapture_io(*orig_io)
end
@@ -40,5 +40,8 @@
$stdout = orig_stdout
$stderr = orig_stderr
end
end
+
+# Unexpected system exit is unexpected
+::MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS.delete(SystemExit)