mirror of
https://github.com/inspec/inspec
synced 2024-11-30 16:39:20 +00:00
fd558b63ac
Signed-off-by: username-is-already-taken2 <gary.bright@niu-solutions.com>
17 lines
674 B
Ruby
17 lines
674 B
Ruby
# encoding: utf-8
|
|
# author: Christoph Hartmann
|
|
# author: Dominik Richter
|
|
|
|
require 'helper'
|
|
require 'inspec/resource'
|
|
|
|
describe 'Inspec::Resources::Feature' do
|
|
describe 'feature' do
|
|
it 'verify windows feature parsing' do
|
|
resource = MockLoader.new(:windows).load_resource('windows_feature', 'dhcp')
|
|
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
|