Skip to content

Commit

Permalink
Update spec/unit/provider/postgresql_conf/ruby_spec.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
  • Loading branch information
bastelfreak and ekohl authored Oct 19, 2023
1 parent cf0d538 commit bd4e26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/provider/postgresql_conf/ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
describe 'duplicate keys in postgresql.conf' do
it 'raises an exception' do
allow(provider).to receive(:parse_config).and_return([{ key: 'foo', line: 1 }, { key: 'foo', line: 2 }])
expect(provider.exists?).to raise_error(Puppet::Error, 'found multiple config items of foo found, please fix this')
expect { provider.exists? }.to raise_error(Puppet::Error, 'found multiple config items of foo found, please fix this')
end
end

Expand Down

0 comments on commit bd4e26c

Please sign in to comment.