inspec/test/integration/default/toml_spec.rb
Nolan Davidson 52cc27dd06 Adding toml resource (#1924)
* Adding toml resource

This adds a `toml` resource that inherits from the json resource and
behaves the same way as the JSON and YAML resources.

Signed-off-by: Nolan Davidson <ndavidson@chef.io>
2017-06-15 16:54:12 -04: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