lib/resources/json.rb in inspec-0.18.0 vs lib/resources/json.rb in inspec-0.19.0
- old
+ new
@@ -8,10 +8,10 @@
class JsonConfig < Inspec.resource(1)
name 'json'
desc 'Use the json InSpec audit resource to test data in a JSON file.'
example "
describe json('policyfile.lock.json') do
- its('cookbook_locks.omnibus.version') { should eq('2.2.0') }
+ its(['cookbook_locks','omnibus','version']) { should eq('2.2.0') }
end
"
include ObjectTraverser