inspec/test/integration/default/controls/toml_spec.rb
Christoph Hartmann 47eabbb221 add functional tests for inspec check (#2077)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-08-15 20:41:24 +02:00

13 lines
272 B
Ruby

# 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