Skip to content

Commit

Permalink
adopt test to newer rspec-puppet syntax
Browse files Browse the repository at this point in the history
This came up during #298
bastelfreak committed Nov 3, 2020
1 parent 8a13291 commit dad494d
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
@@ -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

0 comments on commit dad494d

Please sign in to comment.