cheat sheets.

$ cheat assert_equal
# 'cheat assertions' for the rest

assert_equal(expected, actual, message=nil)

Passes if expected == +actual.

Note that the ordering of arguments is important, since a helpful error message
is generated when this one fails that tells you the values of expected and
actual.

Example:

  assert_equal 'MY STRING', 'my string'.upcase
Version 1, updated 222 days ago.
. o 0 ( edit | history )
( add new | see all )