mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
16 lines
482 B
Ruby
16 lines
482 B
Ruby
# encoding: utf-8
|
|
# author: Christoph Hartmann
|
|
# author: Dominik Richter
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano::Resources::JSON' do
|
|
it 'verify json parsing' do
|
|
resource = load_resource('json', 'policyfile.lock.json')
|
|
_(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
|