if ENV['COVERAGE'] == 'yes'
  require 'coveralls'
  Coveralls.wear!
end

require 'rspec'
require 'facterdb'
include FacterDB

def project_dir
  File.dirname File.dirname(File.expand_path(__FILE__))
end

if ENV['COVERAGE'] == 'yes'
  require 'coveralls'
  require 'simplecov'

  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
  SimpleCov.start do
    add_filter %r{^/spec/}
  end
end

require 'rspec'
require 'facterdb'
include FacterDB

def project_dir
  File.dirname File.dirname(File.expand_path(__FILE__))
end

Exclude /spec/ from coverage reports
Exclude /spec/ from coverage reports
