Sha256: 3c9b393b2f0578e69f7335290d62c78e18bab27dd3e04e6e40a266dd3a6f6ed8
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
require 'simplecov' module SimpleCov module Configuration def clean_filters @filters = [] end end end SimpleCov.configure do clean_filters load_profile 'test_frameworks' end ENV["COVERAGE"] && SimpleCov.start do add_filter "/.rvm/" end require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'hawkins' require 'stringio' module SpecUtils # Copied from Minitest. The Rspec output matcher doesn't work very will with # blocks that are throwing exceptions. def capture_io begin orig_stdout, orig_stderr = $stdout, $stderr captured_stdout, captured_stderr = StringIO.new, StringIO.new $stdout, $stderr = captured_stdout, captured_stderr yield return captured_stdout.string, captured_stderr.string ensure $stdout = orig_stdout $stderr = orig_stderr end end end RSpec.configure do |config| config.color = true config.expect_with :rspec do |c| c.syntax = :expect end config.include SpecUtils end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hawkins-0.1.0 | test/spec_helper.rb |