Sha256: 8da663bdf8c54b2042c06bf9742c504a17186379b30e0195fa4632b3352e957e

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'mocha'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'autowatchr'

class Test::Unit::TestCase
  def fake_result(name)
    StringIO.new(open(File.dirname(__FILE__) + "/fixtures/results/#{name}.txt").read)
  end

  # File vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb, line 36
  def silence_stream(stream)
    old_stream = stream.dup
    stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
    stream.sync = true
    yield
  ensure
    stream.reopen(old_stream)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
autowatchr-0.0.0 test/helper.rb