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:
Adam Leff 2017-12-12 10:31:50 -05:00 committed by Dominik Richter
parent 68a934b03b
commit 470582a84e
2 changed files with 5 additions and 0 deletions

View file

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

View file

@ -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
"