inspec/test/unit/resource_yaml_test.rb

17 lines
500 B
Ruby
Raw Normal View History

2015-09-21 07:51:54 +00:00
# encoding: utf-8
require 'helper'
require 'vulcano/resource'
2015-09-21 10:30:58 +00:00
describe 'Vulcano::Resources::YAML' do
2015-09-22 16:31:21 +00:00
let(:resource) { load_resource('yaml', 'kitchen.yml') }
2015-09-21 07:51:54 +00:00
2015-09-22 16:33:05 +00:00
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}
2015-09-21 07:51:54 +00:00
end
end