We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 135398a + 31cd737 commit e97c50fCopy full SHA for e97c50f
moduleroot/spec/spec_helper.rb.erb
@@ -62,6 +62,18 @@ RSpec.configure do |c|
62
RSpec::Puppet::Coverage.report!(<%= @configs['minimum_code_coverage_percentage'] %>)
63
<%- end -%>
64
end
65
+
66
+ # Filter backtrace noise
67
+ backtrace_exclusion_patterns = [
68
+ %r{spec_helper},
69
+ %r{gems},
70
+ ]
71
72
+ if c.respond_to?(:backtrace_exclusion_patterns)
73
+ c.backtrace_exclusion_patterns = backtrace_exclusion_patterns
74
+ elsif c.respond_to?(:backtrace_clean_patterns)
75
+ c.backtrace_clean_patterns = backtrace_exclusion_patterns
76
+ end
77
78
79
# Ensures that a module is defined
0 commit comments