spec/spec_helper_source.rb
# from minitest (TODO: make use of minitest, not override it)
from minitest (TODO: make use of minitest, not override it)
from minitest ( TODO : make use of minitest not override it )
def capture_io(&block)
  orig_stdout, orig_stderr = $stdout, $stderr
  captured_stdout, captured_stderr = StringIO.new, StringIO.new
  $stdout, $stderr = captured_stdout, captured_stderr
  yield
  return {stdout: captured_stdout.string, stderr: captured_stderr.string}
ensure
  $stdout = orig_stdout
  $stderr = orig_stderr
end
def capture_io ( & block ) orig_stdout , orig_stderr = $stdout , $stderr captured_stdout , captured_stderr = StringIO . new , StringIO . new $stdout , $stderr = captured_stdout , captured_stderr yield return { stdout : captured_stdout . string , stderr : captured_stderr . string } ensure $stdout = orig_stdout $stderr = orig_stderr end
from minitest (TODO: make use of minitest, not override it)
from minitest ( TODO : make use of minitest not override it )
block
<not_specific>