mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
Use include instead of match in the error message (#1248)
as include behaves like contain and not match Signed-off-by: Artem Sidorenko <artem@posteo.de>
This commit is contained in:
parent
23456c5e86
commit
489f314a79
2 changed files with 1 additions and 1 deletions
0
bla
Normal file
0
bla
Normal file
|
@ -219,7 +219,7 @@ end
|
|||
# unsupported
|
||||
RSpec::Matchers.define :contain do |_rule|
|
||||
match do |_resource|
|
||||
fail "[UNSUPPORTED] `contain` matcher. Please use the following syntax `its('content') { should match('value') }`."
|
||||
fail "[UNSUPPORTED] `contain` matcher. Please use the following syntax `its('content') { should include('value') }`."
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue