Sha256: cbc02646a4a891081112b003a508fda8216e186572c09f06646069f5e4f2ce4d
Contents?: true
Size: 557 Bytes
Versions: 2
Compression:
Stored size: 557 Bytes
Contents
# encoding: utf-8 # # This file is part of the elephas 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["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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elephas-1.1.3 | spec/coverage_helper.rb |
elephas-1.1.2 | spec/coverage_helper.rb |