module RSpec::Support::WithIsolatedStdErr

def with_isolated_stderr

def with_isolated_stderr
  original = $stderr
  $stderr = StringIO.new
  yield
ensure
  $stderr = original
end