method

assert_same

v1_8_7_330 - Show latest stable - Class: Test::Unit::Assertions
assert_same(expected, actual, message="")
public

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

Example:

o = Object.new
assert_same o, o