Sha256: 4ae85f5a8805be8774ed0c87394cdda94fffbeaa84dd1d07dbdbbe35cbcac172

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 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 "pathname"

if ENV["LAZIER_COVERAGE"] == "TRUE" && RUBY_VERSION >= "1.9" then
  require "simplecov"
  
  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

4 entries across 4 versions & 1 rubygems

Version Path
lazier-1.0.6 spec/coverage_helper.rb
lazier-1.0.5 spec/coverage_helper.rb
lazier-1.0.4 spec/coverage_helper.rb
lazier-1.0.3 spec/coverage_helper.rb