Sha256: 35c4ba750f51b8d6eb5a41b455a46b9e0964d6b7f374cd5df4df1a3aac56c977
Contents?: true
Size: 653 Bytes
Versions: 8
Compression:
Stored size: 653 Bytes
Contents
require 'simplecov' require 'coveralls' require 'codeclimate-test-reporter' require 'pry' CodeClimate::TestReporter.configure do |config| config.logger.level = Logger::WARN end formatters = [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] if ENV['CODECLIMATE_REPO_TOKEN'] formatters << CodeClimate::TestReporter::Formatter end SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters] SimpleCov.coverage_dir 'log/coverage/rspec' SimpleCov.start do add_filter 'vendor' add_filter 'spec' end def production_code spec = caller[0][/spec.+\.rb/] './' + spec.gsub('_spec','').gsub(/spec/, 'lib') end
Version data entries
8 entries across 8 versions & 1 rubygems