Skip to content

Instantly share code, notes, and snippets.

@hashar
Forked from maxlinc/spec_helper.rb
Created June 26, 2017 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashar/24d8b48e7323a9337802e88909dca7fd to your computer and use it in GitHub Desktop.
Save hashar/24d8b48e7323a9337802e88909dca7fd to your computer and use it in GitHub Desktop.
rspec puppet debugging
RSpec.configure do |conf|
conf.module_path = File.join(fixture_path, 'modules')
conf.manifest_dir = File.join(fixture_path, 'manifests')
conf.hiera_config = File.join(fixture_path, 'hiera.yaml')
end
# Not sure this works for all types of https://github.com/rodjek/rspec-puppet tests. I think it works with host tests
if ENV['PUPPET_DEBUG']
Puppet::Util::Log.level = :debug
Puppet::Util::Log.newdestination(:console)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment