Sha256: c59d09fd2f438cdba22262974a5174d42fc28150a6910f5e1a415e530f4c4f2f

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

require 'minitest/autorun'
require 'minitest/reporters'

require File.expand_path('../../lib/collimator', __FILE__)
require 'stringio'
require 'date'

Minitest::Reporters.use!
Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new(:color => true)]

class Minitest::Test
  include Collimator

  def teardown
    $stdout = STDOUT
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
collimator-0.0.3 test/test_helper.rb