cheat sheets.

$ cheat assert_not_nil
# 'cheat assertions' for the rest

assert_not_nil(object, message="")

Passes if ! object .nil?

Example:

  assert_not_nil '1 two 3'.sub!(/two/, '2')
Version 1, updated 135 days ago.
. o 0 ( edit | history )
( add new | see all )