Skip to content

Commit 3514c93

Browse files
committed
Fix checking of warning messages
We produce 2 errors in this example. We don't want to check that the first one is present twice: we want to check that each warning is present once.
1 parent 59808fa commit 3514c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/puppet-lint/plugins/check_unsafe_interpolations_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class foo {
4545

4646
it 'creates two warnings' do
4747
expect(problems).to contain_warning(msg)
48-
expect(problems).to contain_warning(msg)
48+
expect(problems).to contain_warning("unsafe interpolation of variable 'bar' in exec command")
4949
end
5050
end
5151

0 commit comments

Comments
 (0)