Apply suggestions from review, fix typos

Signed-off-by: Sean Escriva <sean.escriva@gmail.com>
This commit is contained in:
Sean Escriva 2019-01-23 08:59:10 -05:00
parent b764ced5d9
commit cae4cb7049
No known key found for this signature in database
GPG key ID: BE06ADB38C7F719D

View file

@ -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/).