cheat sheets.

$ cheat assert_nothing_thrown
# 'cheat assertions' for the rest

assert_nothing_thrown(message="", &proc)

Passes if block does not throw anything.

Example:

 assert_nothing_thrown do
   [1, 2].uniq
 end
Version 1, updated 222 days ago.
. o 0 ( edit | history )
( add new | see all )