Sha256: 4d684aa6f79cba0a7c51c001059c4d3891e7eca2818247c8cd99aaba57765510
Contents?: true
Size: 952 Bytes
Versions: 3
Compression:
Stored size: 952 Bytes
Contents
# encoding: utf-8 if ENV['COVERAGE'] == 'true' require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do command_name 'spec:unit' add_filter 'config' add_filter 'spec' add_filter 'vendor' minimum_coverage 100 end end require 'yardstick' require 'devtools/spec_helper' RSpec.configure do |config| config.expect_with :rspec do |expect_with| expect_with.syntax = :expect end clear_tasks = proc { Rake::Task.clear } config.before(:all, &clear_tasks) config.before(&clear_tasks) clear_yard_registry = proc { YARD::Registry.clear } config.before(:all, &clear_yard_registry) config.before(&clear_yard_registry) def capture_stdout $stdout = StringIO.new yield ensure $stdout.rewind @output = $stdout.read $stdout = STDOUT end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yardstick-0.9.9 | spec/spec_helper.rb |
yardstick-0.9.8 | spec/spec_helper.rb |
yardstick-0.9.7 | spec/spec_helper.rb |