mirror of
https://github.com/inspec/inspec
synced 2024-12-18 09:03:12 +00:00
41087c5ec6
Signed-off-by: James Stocks <jstocks@chef.io>
11 lines
390 B
Ruby
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
|