cheat sheets.

$ cheat assert_operator
# 'cheat assertions' for the rest

assert_operator(object1, operator, object2, message="")

Compares the +object1+ with +object2+ using operator.

Passes if object1.send(operator, object2) is true.

Example:

  assert_operator 5, :>=, 4
Version 1, updated 419 days ago.
. o 0 ( edit | history )
( add new | see all )