aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: c8643598f88df293dadec51b24baaca5d0ecdc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'puppetlabs_spec_helper/module_spec_helper'
require 'rspec-puppet-facts'

include RspecPuppetFacts

RSpec.configure do |c|
  c.before do
    # avoid "Only root can execute commands as other users"
    Puppet.features.stubs(:root? => true)
  end
end

at_exit { RSpec::Puppet::Coverage.report! }