module Maxitest::Timeout
def capture_exceptions(*, &block)
def capture_exceptions(*, &block) # NOTE: having a default def maxitest_timeout would break using let(:maxitest_timeout) timeout = (defined?(maxitest_timeout) ? maxitest_timeout : Maxitest.timeout || 5) if timeout == false super else super do ::Timeout.timeout(timeout, TestCaseTimeout, &block) end end end