Skip to content

Commit 99442a7

Browse files
authoredNov 3, 2020
Merge pull request #300 from bastelfreak/tests
adopt test to newer rspec-puppet syntax
2 parents 8a13291 + dad494d commit 99442a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎spec/classes/enterprise_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
'include splunk::forwarder'
5353
end
5454

55-
it { expect { is_expected.to contain_class('splunk::enterprise') }.to raise_error(Puppet::Error, %r{Do not include splunk::forwarder on the same node as splunk::enterprise}) }
55+
it { is_expected.to compile.and_raise_error(%r{Do not include splunk::forwarder on the same node as splunk::enterprise}) }
5656
end
5757

5858
context 'when manage_password = true' do

0 commit comments

Comments
 (0)
Please sign in to comment.