Sha256: 9ee6c682ca1dd45041e8238f7913d02b634cd0fee8e8e6db9aad4ad83a8c5d41

Contents?: true

Size: 560 Bytes

Versions: 5

Compression:

Stored size: 560 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
brauser-1.0.7 spec/coverage_helper.rb
brauser-1.0.6 spec/coverage_helper.rb
brauser-1.0.5 spec/coverage_helper.rb
brauser-1.0.1 spec/coverage_helper.rb
brauser-1.0.0 spec/coverage_helper.rb