Skip to content

Commit a0827ee

Browse files
committed
(maint) Only set Puppet[:strict] where supported
1 parent 0303bf0 commit a0827ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
c.before :each do
3232
# set to strictest setting for testing
3333
# by default Puppet runs at warning level
34-
Puppet.settings[:strict] = :warning
34+
# newer versions of Puppet remove :strict
35+
Puppet.settings[:strict] = :warning if Puppet.settings.include?(:strict)
3536
end
3637
end
3738

0 commit comments

Comments
 (0)