inspec/test/integration/default/controls/xml_spec.rb
Miah Johnson 659b4b373a Remove # encoding: utf8 magic comments
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 16:06:23 -07:00

12 lines
388 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