# 'cheat assertions' for the rest
assert_throws(expected_symbol, message="", &proc)
Passes if the block throws expected_symbol
Example:
assert_throws :done do
throw :done
endcheat sheets.
$ cheat assert_throws$ cheat assert_throws# 'cheat assertions' for the rest
assert_throws(expected_symbol, message="", &proc)
Passes if the block throws expected_symbol
Example:
assert_throws :done do
throw :done
end