# 'cheat assertions' for the rest
assert_raise(*args) {|| ...}
Passes if the block raises one of the given exceptions.
Example:
assert_raise RuntimeError, LoadError do
raise 'Boom!!!'
endcheat sheets.
$ cheat assert_raise$ cheat assert_raise# 'cheat assertions' for the rest
assert_raise(*args) {|| ...}
Passes if the block raises one of the given exceptions.
Example:
assert_raise RuntimeError, LoadError do
raise 'Boom!!!'
end