# '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( add new | see all )
- updated sheets

- mysql_select
- cheat
- cryptsetup
- burm
- perl
- port
- yuilang
- queriac
- mechanize
- sness
- nonsense
- haml
- git
- assert_valid
- marsmission
Advertisement