mirror of
https://github.com/inspec/inspec
synced 2024-12-04 18:39:43 +00:00
18 lines
662 B
Ruby
18 lines
662 B
Ruby
# encoding utf-8
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano:Resources::Feature' do
|
|
describe 'feature' do
|
|
|
|
let(:resource) { MockLoader.new(:windows).load_resource('windows_feature', 'dhcp') }
|
|
|
|
# TODO: set windows as mock os
|
|
it 'verify windows feature parsing' do
|
|
pkg = { name: 'DHCP', description: 'Dynamic Host Configuration Protocol (DHCP) Server enables you to centrally configure, manage, and provide temporary IP addresses and related information for client computers.', installed: false, type: 'windows-feature' }
|
|
_(resource.info).must_equal pkg
|
|
_(resource.installed?).must_equal false
|
|
end
|
|
end
|
|
end
|