inspec/test/fixtures/profiles/raise_outside_control/controls/raises.rb
James Stocks 41087c5ec6 Set profiles that fail to load as failed
Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-02 13:33:07 +01:00

11 lines
390 B
Ruby

# Ref https://github.com/inspec/inspec/issues/5107
# Users may add code outside controls without exception handling.
# While this is a user mistake, users may not know about it if we don't report it...
raise StandardError, 'Something unforeseen...'
control "Test Exception Example" do
describe file("/tmp") do # The actual test
it { should be_directory }
end
end