Sha256: c1077da853c004690ee50799ea70299cf643a915ed08fafc30cc4f4bd8b43e59

Contents?: true

Size: 557 Bytes

Versions: 5

Compression:

Stored size: 557 Bytes

Contents

# encoding: utf-8
#
# This file is part of the elephas gem. Copyright (C) 2013 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["ELEPHAS_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

5 entries across 5 versions & 1 rubygems

Version Path
elephas-2.1.0 spec/coverage_helper.rb
elephas-2.0.3 spec/coverage_helper.rb
elephas-2.0.2 spec/coverage_helper.rb
elephas-2.0.1 spec/coverage_helper.rb
elephas-2.0.0 spec/coverage_helper.rb