mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
xml resource: update docs with alternate syntax for keys with periods (#2389)
Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
parent
68a934b03b
commit
470582a84e
2 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,10 @@ where
|
|||
|
||||
<br>
|
||||
|
||||
In the event the path contains an element which contains periods, the alternate syntax can be used:
|
||||
|
||||
its(['root/name.with.a.period']) { should cmp 'so_many_dots' }
|
||||
|
||||
## Examples
|
||||
|
||||
The following examples show how to use this InSpec audit resource.
|
||||
|
|
|
@ -8,6 +8,7 @@ module Inspec::Resources
|
|||
example "
|
||||
describe xml('default.xml') do
|
||||
its('key/sub_key') { should eq(['value']) }
|
||||
its(['root/name.with.a.period']) { should cmp 'so_many_dots' }
|
||||
end
|
||||
"
|
||||
|
||||
|
|
Loading…
Reference in a new issue