mirror of
https://github.com/inspec/inspec
synced 2024-11-27 23:20:33 +00:00
18 lines
474 B
Ruby
18 lines
474 B
Ruby
# encoding: utf-8
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano:Resources::JSON' do
|
|
describe 'json' do
|
|
|
|
let(:resource) { loadResource('json', 'policyfile.lock.json') }
|
|
|
|
it 'verify json parsing' do
|
|
_(resource.params).wont_equal nil
|
|
_(resource.send('name')).must_equal 'demo'
|
|
_(resource.send('run_list')).must_equal %w{apache2 omnibus}
|
|
_(resource.send('cookbook_locks.omnibus.version')).must_equal '2.2.0'
|
|
end
|
|
end
|
|
end
|