inspec/test/integration/default/controls/toml_spec.rb

14 lines
272 B
Ruby
Raw Normal View History

# encoding: utf-8
if os.unix?
filename = '/tmp/example.toml'
else
filename = 'c:/windows/temp/example.toml'
end
describe toml(filename) do
its ('key') { should eq('value') }
its (['arr', 1]) { should eq 2 }
its (['mytable', 'key1']) { should eq 'value1' }
end