method
assert_same
ruby 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
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