mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Apply suggestions from review, fix typos
Signed-off-by: Sean Escriva <sean.escriva@gmail.com>
This commit is contained in:
parent
b764ced5d9
commit
cae4cb7049
1 changed files with 3 additions and 4 deletions
|
@ -47,8 +47,8 @@ where
|
|||
* `name` is a configuration setting in a JSON file
|
||||
* `should eq 'foo'` tests a value of `name` as read from a JSON file versus the value declared in the test
|
||||
|
||||
The `json` resource can also be used with json formatted output from a command.
|
||||
Using the same json as the previous exmaple, it can be queried using:
|
||||
The `json` resource can also be used with JSON formatted output from a command.
|
||||
Using the same JSON as the previous example, it can be queried using:
|
||||
|
||||
describe json({ command: 'retrieve_data.py --json'}) do
|
||||
its('name') { should eq 'hello' }
|
||||
|
@ -56,7 +56,7 @@ Using the same json as the previous exmaple, it can be queried using:
|
|||
its(['array', 1]) { should eq 'one' }
|
||||
end
|
||||
|
||||
Finally content can be passed directly to the resource:
|
||||
Finally, content can be passed directly to the resource:
|
||||
|
||||
describe json({ content: '{\"item1\": { \"status\": \"available\" } }' }) do
|
||||
its(['item1', 'status']) { should cmp 'available' }
|
||||
|
@ -85,4 +85,3 @@ The `name` matcher tests the value of the filename as read from a JSON file vers
|
|||
## Matchers
|
||||
|
||||
For a full list of available matchers, please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
|
||||
|
||||
|
|
Loading…
Reference in a new issue