inspec/test/unit/mock/profiles/profile-with-required-attributes/controls/include.rb
Jared Quick cbb3b600d9
Fix archive with required attributes (#3468)
* Skip require check unless we are in a exec call.
* Add testing
* Update comment.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-05 16:24:26 -04:00

11 lines
159 B
Ruby

cis_level = attribute('cis_level')
control 'control1' do
title 'title'
only_if { cis_level == 2 }
describe true do
it { should eq true}
end
end