# 'cheat assertions' for the rest
assert_nothing_raised(*args) {|| ...}
Passes if block does not raise an exception.
Example:
assert_nothing_raised do
[1, 2].uniq
endcheat sheets.
$ cheat assert_nothing_raised( add new | see all )
- updated sheets

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