diff options
| author | Bobosila Victor <victor.bobosila@puppet.com> | 2021-10-04 12:25:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 12:25:53 +0300 |
| commit | 95ca01cc9b02ac32d74081393d41b4c94d16df77 (patch) | |
| tree | be9d5fd8bd1be4909f91b306b7221ada9331bba3 /spec/spec_helper.rb | |
| parent | ec3ca459f0f3d774119b8fba37390bf212c06923 (diff) | |
| parent | 15049eff83d9fc6231daa4dc85cd34b9d5b2d65b (diff) | |
| download | puppet-mailalias_core-95ca01cc9b02ac32d74081393d41b4c94d16df77.tar.gz puppet-mailalias_core-95ca01cc9b02ac32d74081393d41b4c94d16df77.tar.bz2 | |
Merge pull request #34 from GabrielNagy/MODULES-11197/pdk-update
(MODULES-11197) Update to pdk-templates 2.2.0
Diffstat (limited to 'spec/spec_helper.rb')
| -rw-r--r-- | spec/spec_helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e92dced..9b1fa6f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -42,10 +42,23 @@ RSpec.configure do |c| # set to strictest setting for testing # by default Puppet runs at warning level Puppet.settings[:strict] = :warning + Puppet.settings[:strict_variables] = true end c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT'] c.after(:suite) do end + + # Filter backtrace noise + backtrace_exclusion_patterns = [ + %r{spec_helper}, + %r{gems}, + ] + + if c.respond_to?(:backtrace_exclusion_patterns) + c.backtrace_exclusion_patterns = backtrace_exclusion_patterns + elsif c.respond_to?(:backtrace_clean_patterns) + c.backtrace_clean_patterns = backtrace_exclusion_patterns + end end # Ensures that a module is defined |
