mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Update documentation for matching output of commands
This commit is contained in:
parent
d19dd89c1e
commit
b2876bf2f4
1 changed files with 4 additions and 4 deletions
|
@ -628,7 +628,7 @@ The ``stdout`` matcher tests results of the command as returned in standard outp
|
|||
|
||||
.. code-block:: ruby
|
||||
|
||||
its('stdout') { should eq '/^1$/' }
|
||||
its('stdout') { should match /^1$/ }
|
||||
|
||||
Examples
|
||||
-----------------------------------------------------
|
||||
|
@ -639,9 +639,9 @@ The following examples show how to use this InSpec audit resource.
|
|||
.. code-block:: ruby
|
||||
|
||||
describe command('psql -V') do
|
||||
its('stdout') { should eq '/RC/' }
|
||||
its('stdout') { should_not eq '/DEVEL/' }
|
||||
its('stdout') { should_not eq '/BETA/' }
|
||||
its('stdout') { should match /RC/ }
|
||||
its('stdout') { should_not match /DEVEL/ }
|
||||
its('stdout') { should_not match /BETA/ }
|
||||
end
|
||||
|
||||
**Test standard output (stdout)**
|
||||
|
|
Loading…
Reference in a new issue