Sha256: 5b1cb4c9a30579b190b75a776064b02fe62f576d2fe1f0f33ddb2a42c645745f

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

# encoding: utf-8
#
# This file is part of the brauser 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["BRAUSER_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

1 entries across 1 versions & 1 rubygems

Version Path
brauser-2.0.0 spec/coverage_helper.rb