Sha256: 6e68056470d5b5e3a2007c1fa42b8421d3d161b31b7787c55e0f8f6b90643917
Contents?: true
Size: 737 Bytes
Versions: 7
Compression:
Stored size: 737 Bytes
Contents
require 'simplecov' SimpleCov.start do add_group 'Libraries', 'lib' add_group 'Specs', 'spec' coverage_dir 'docs/coverage' end require 'rspec' require 'mdoc' def capture_stdout(&block) original_stdout = $stdout $stdout = fake = StringIO.new begin yield rescue SystemExit $stdout = original_stdout # fake rubocop ensure $stdout = original_stdout end fake.string end def capture_stderr(&block) original_stdout = $stderr $stderr = fake = StringIO.new begin yield rescue SystemExit $stdout = original_stdout # fake rubocop ensure $stderr = original_stdout end fake.string end RSpec.configure do |config| config.color_enabled = true config.formatter = 'documentation' end
Version data entries
7 entries across 7 versions & 1 rubygems