mirror of
https://github.com/inspec/inspec
synced 2024-12-24 03:53:15 +00:00
e8ae9012ea
Signed-off-by: Miah Johnson <miah@chia-pet.org>
11 lines
387 B
Ruby
11 lines
387 B
Ruby
if os.unix?
|
|
filename = '/tmp/example.xml'
|
|
else
|
|
filename = 'c:/windows/temp/example.xml'
|
|
end
|
|
|
|
describe xml(filename) do
|
|
its ('/breakfast_menu/food[1]/name') { should eq(['Belgian Waffles']) }
|
|
its ('/breakfast_menu/food/name') { should eq(['Belgian Waffles', 'Strawberry Belgian Waffles']) }
|
|
its ('/breakfast_menu/food[3]/@name') { should eq(['Blueberry Belgian Waffles']) }
|
|
end
|