mirror of
https://github.com/inspec/inspec
synced 2024-12-19 01:23:50 +00:00
db8e6e7415
Signed-off-by: Ryan Davis <zenspider@chef.io>
13 lines
310 B
Ruby
13 lines
310 B
Ruby
title 'only-if-os-nope'
|
|
|
|
only_if { os.name.include('nope') }
|
|
|
|
control 'only-if-os-nope-1.0' do
|
|
impact 1.0
|
|
title 'Test `only_if` in a control raising an error'
|
|
desc 'Not a real test, check with `inspec check`'
|
|
only_if { os.name.include('nope') }
|
|
describe 'foo' do
|
|
it { should eq 'foo' }
|
|
end
|
|
end
|