inspec/test/unit/mock/profiles/exception-in-control/controls/03-syntax.rb
Clinton Wolfe 1a00853cd8
Catch exceptions in control blocks and fail the control (#2987)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-26 15:44:16 -04:00

9 lines
No EOL
179 B
Ruby

title 'Test case 3 for exceptions controls'
control 'a control with an undefined method' do
plowshares = swords.beat
end
control 'a control with a divide-by-zero' do
1/0
end