Sha256: b1f3b9424484f9aa069b47b0367885ed2e5f1e6e12af153078c7b46066b83e1d

Contents?: true

Size: 1.09 KB

Versions: 20

Compression:

Stored size: 1.09 KB

Contents

begin
  require 'simplecov'
  require 'simplecov-console'
  require 'codecov'
rescue LoadError
else
  SimpleCov.start do
    track_files 'lib/**/*.rb'

    add_filter '/spec'

    enable_coverage :branch

    # do not track vendored files
    add_filter '/vendor'
    add_filter '/.vendor'
  end

  SimpleCov.formatters = [
    SimpleCov::Formatter::Console,
    SimpleCov::Formatter::Codecov,
  ]
end

# require 'pp' statement needed before fakefs, otherwise they can collide. Ref:
#   https://github.com/fakefs/fakefs#fakefs-----typeerror-superclass-mismatch-for-class-file
require 'pp'
require 'fakefs/spec_helpers'
require 'beaker'
require 'beaker-puppet'
require 'helpers'

# setup & require beaker's spec_helper.rb
beaker_gem_spec = Gem::Specification.find_by_name('beaker')
beaker_gem_dir = beaker_gem_spec.gem_dir
beaker_spec_path = File.join(beaker_gem_dir, 'spec')
$LOAD_PATH << beaker_spec_path
require File.join(beaker_spec_path, 'spec_helper.rb')

require 'rspec/its'

RSpec.configure do |config|
  config.include FakeFS::SpecHelpers
  config.include TestFileHelpers
  config.include HostHelpers
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
beaker-puppet-4.1.1 spec/spec_helper.rb
beaker-puppet-4.1.0 spec/spec_helper.rb
beaker-puppet-4.0.0 spec/spec_helper.rb
beaker-puppet-2.1.0 spec/spec_helper.rb
beaker-puppet-3.0.1 spec/spec_helper.rb
beaker-puppet-3.0.0 spec/spec_helper.rb
beaker-puppet-2.0.0 spec/spec_helper.rb
beaker-puppet-1.29.0 spec/spec_helper.rb
beaker-puppet-1.28.0 spec/spec_helper.rb
beaker-puppet-1.27.0 spec/spec_helper.rb
beaker-puppet-1.26.3 spec/spec_helper.rb
beaker-puppet-1.26.2 spec/spec_helper.rb
beaker-puppet-1.26.1 spec/spec_helper.rb
beaker-puppet-1.26.0 spec/spec_helper.rb
beaker-puppet-1.25.0 spec/spec_helper.rb
beaker-puppet-1.24.0 spec/spec_helper.rb
beaker-puppet-1.23.0 spec/spec_helper.rb
beaker-puppet-1.22.2 spec/spec_helper.rb
beaker-puppet-1.22.1 spec/spec_helper.rb
beaker-puppet-1.22.0 spec/spec_helper.rb