Newer
Older
# https://github.com/rodjek/rspec-puppet/#configurate-manifests-for-puppet-4
RSpec.configure do |c|

Benedikt Wegmann
committed
c.module_path = File.join(File.dirname(File.expand_path(__FILE__)), 'fixtures', 'modules') + ':~/.puppet/modules'
c.manifest_dir = File.join(File.dirname(File.expand_path(__FILE__)), 'fixtures', 'manifests')
c.manifest = File.join(File.dirname(File.expand_path(__FILE__)), 'fixtures', 'manifests', 'site.pp')
c.environmentpath = File.join(Dir.pwd, 'spec')
c.after(:suite) do
RSpec::Puppet::Coverage.report!
end