inspec/test/unit/mock/profiles/windows-only/controls/example.rb
Steven Danna f2e587f6d5
Skip controls from profile's that don't support the current platform
Any controls included from profiles that don't support our current
platform are now marked as skipped.

Fixes #1049
2016-09-14 09:57:53 +01:00

17 lines
324 B
Ruby

# encoding: utf-8
# copyright: 2015, The Authors
# license: All rights reserved
control 'dhcp-disabled' do
title 'DHCP is disabled'
describe windows_feature('dhcp') do
it { should be_installed }
end
end
control 'cdrive' do
title 'Has a C://'
describe file("C://") do
it { should be_directory }
end
end