aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2019-09-11 13:29:12 +0200
committerGitHub <noreply@github.com>2019-09-11 13:29:12 +0200
commit6d96e030be0db4a916dd6a9bd0b25570d359e634 (patch)
tree523f7a96c5b2640dbf2dd45cd89d931e12ceff9d /spec/spec_helper.rb
parent81748ba786c6a55c4575a400c08de99716da8fbb (diff)
parent882a45498ddefdfc83ff5b19da723fd0be3acdec (diff)
downloadpuppet-ferm-6d96e030be0db4a916dd6a9bd0b25570d359e634.tar.gz
puppet-ferm-6d96e030be0db4a916dd6a9bd0b25570d359e634.tar.bz2
Merge pull request #58 from voxpupuli/multi-table-support
add ability to configure rules in tables other than the default "filter" table
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index f16fb15..96f14d5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -10,6 +10,11 @@ require 'rspec-puppet-facts'
require 'bundler'
include RspecPuppetFacts
+if ENV['DEBUG']
+ Puppet::Util::Log.level = :debug
+ Puppet::Util::Log.newdestination(:console)
+end
+
if File.exist?(File.join(__dir__, 'default_module_facts.yml'))
facts = YAML.load(File.read(File.join(__dir__, 'default_module_facts.yml')))
if facts