Sha256: 7d938e2dceea96dbfb9d9eb2d827a6c8d347522f41b762994e4ae7c128f2d091
Contents?: true
Size: 1008 Bytes
Versions: 1
Compression:
Stored size: 1008 Bytes
Contents
require 'bundler/setup' require 'simplecov' require 'test/unit' require 'shoulda' require 'simplecov-bamboo' SimpleCov.coverage_dir('tmp/coverage') class Test::Unit::TestCase def source_fixture(filename) File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', filename)) end # Keep 1.8-rubies from complaining about missing tests in each file that covers only 1.9 functionality def default_test end end require 'shoulda_macros' Test::Unit::TestCase.send :extend, ShouldaMacros # Taken from http://stackoverflow.com/questions/4459330/how-do-i-temporarily-redirect-stderr-in-ruby require "stringio" def capture_stderr # The output stream must be an IO-like object. In this case we capture it in # an in-memory IO object so we can return the string value. You can assign any # IO object here. previous_stderr, $stderr = $stderr, StringIO.new yield $stderr.string ensure # Restore the previous value of stderr (typically equal to STDERR). $stderr = previous_stderr end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplecov-bamboo-0.1.0 | test/helper.rb |