cheat sheets.

$ cheat assert_same
# 'cheat assertions' for the rest

assert_same(expected, actual, message="")

Passes if actual .equal? expected (i.e. they are the same instance).

Example:

  o = Object.new
  assert_same o, o
Version 1, updated 247 days ago.
. o 0 ( edit | history )
( add new | see all )