inspec/test/fixtures/profiles/only-if-os-nope/controls/only-if-false.rb
Ryan Davis db8e6e7415 Moved test/unit/mock/* to test/fixtures
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 16:29:03 -08:00

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