Sha256: fe9e59a7e9c1008e7d03e67a9c2afdac00782f18034ad4f35b5d64949247d8b8

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

# encoding: utf-8
#
# This file is part of the lazier gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

require "simplecov"
require "pathname"

if ENV["COWTECH_EXTENSIONS_COVERAGE"] == "TRUE" then
  root = Pathname.new(File.dirname(__FILE__)) + ".."

  SimpleCov.start do
    add_filter do |src_file|
      path = Pathname.new(src_file.filename).relative_path_from(root).to_s
      path !~ /^lib/
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lazier-1.0.1 spec/coverage_helper.rb