cheat sheets.

$ 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
Version 1, updated 222 days ago.
. o 0 ( edit | history )
( add new | see all )