Sha256: 2a117401fb38cdfc043f08afb8bd675a121c74288f9b4d966d6431a4ae026006
Contents?: true
Size: 674 Bytes
Versions: 10
Compression:
Stored size: 674 Bytes
Contents
require 'rspec' require 'rocket_fuel' require 'mocha/api' begin require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start rescue end RSpec.configure do |config| #capture method courtesy of https://github.com/docwhat/homedir/blob/homedir3/spec/spec_helper.rb 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 config.mock_with :mocha end
Version data entries
10 entries across 10 versions & 1 rubygems