Sha256: 622a11920ba69795ffb60ddb91e210265d241f7b34db8cc6f658a17abe6ce5f4

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

require 'coveralls'
Coveralls.wear!
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'sconb'

# this method is written by wycats
def capture(stream)
  begin
    stream = stream.to_s
    eval "$#{stream} = StringIO.new"
    yield
    result = eval("$#{stream}").string
  ensure
    eval("$#{stream} = #{stream.upcase}")
  end

  result
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sconb-1.0.0 spec/spec_helper.rb
sconb-0.0.7 spec/spec_helper.rb