Sha256: 98fa3ed2344a8df16274fdcd8371befdcdbcf539b1796a0b90caa10f8e891913

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

require 'rspec'
require 'rspawn/version'

include Rspawn

def capture_stdout
  out = StringIO.new
  $stdout = out
  yield
  return out.string
ensure
  $stdout = STDOUT
end

def capture_stderr
  out = StringIO.new
  $stderr = out
  yield
  return out.string
ensure
  $stderr = STDERR
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspawn-0.4.0 spec/spec_helper.rb
rspawn-0.3.0 spec/spec_helper.rb