Sha256: 82652d6089c4ff10d5fb4746cc60ffdbd6eb2953fa2822f4ccaa1606655735e3
Contents?: true
Size: 634 Bytes
Versions: 8
Compression:
Stored size: 634 Bytes
Contents
begin require 'simplecov' SimpleCov.start do add_filter "/spec/" end rescue LoadError puts 'ignoring simplecov, needs ruby-1.9' end # # Stuff borrowed from carlhuda/bundler # RSpec.configure do |config| 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 def source_root File.join(File.dirname(__FILE__), 'fixtures') end def destination_root File.join(File.dirname(__FILE__), 'sandbox') end alias :silence :capture end
Version data entries
8 entries across 8 versions & 1 rubygems