mirror of
https://github.com/inspec/inspec
synced 2024-11-28 07:30:50 +00:00
16 lines
500 B
Ruby
16 lines
500 B
Ruby
# encoding: utf-8
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano::Resources::YAML' do
|
|
let(:resource) { load_resource('yaml', 'kitchen.yml') }
|
|
|
|
it 'verify yaml parsing' do
|
|
_(resource.params).wont_be_nil
|
|
_(resource.send('driver.name')).must_equal 'vagrant'
|
|
_(resource.send('driver.customize.memory')).must_equal 1024
|
|
_(resource.send('platforms.1.name')).must_equal 'centos-6.7'
|
|
_(resource.send('platforms.name')).must_equal %w{centos-5.11 centos-6.7}
|
|
end
|
|
end
|