Skip to content

Commit

Permalink
Merge pull request #300 from bastelfreak/tests
Browse files Browse the repository at this point in the history
adopt test to newer rspec-puppet syntax
  • Loading branch information
bastelfreak authored Nov 3, 2020
2 parents 8a13291 + dad494d commit 99442a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/classes/enterprise_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'include splunk::forwarder'
end

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}) }
it { is_expected.to compile.and_raise_error(%r{Do not include splunk::forwarder on the same node as splunk::enterprise}) }
end

context 'when manage_password = true' do
Expand Down

0 comments on commit 99442a7

Please sign in to comment.