mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Fix should contain / should match confusion
If attempting to use "contain" here, you get [UNSUPPORTED] `contain` matcher. Please use the following syntax `its('content') { should match('value') }`. it looks like this should say "should match". This may effect other resources, but I've only tried file.
This commit is contained in:
parent
195ecd8153
commit
0d35ead5b4
1 changed files with 1 additions and 1 deletions
|
@ -1067,7 +1067,7 @@ The ``content`` matcher tests if contents in the file match the value specified
|
|||
|
||||
.. code-block:: ruby
|
||||
|
||||
its('content') { should contain 'value' }
|
||||
its('content') { should match 'value' }
|
||||
|
||||
The following complete example tests the ``pg_hba.conf`` file in |postgresql| for |md5| requirements. The tests look at all ``host`` and ``local`` settings in that file, and then compare the |md5| checksums against the values in the test:
|
||||
|
||||
|
|
Loading…
Reference in a new issue