method
assert_not_same
v2_1_10 -
Show latest stable
- Class:
Test::Unit::Assertions
assert_not_same(expected, actual, message="")public
Tests if expected is not the same object as actual. This test uses Object#equal? to test equality.
An optional failure message may be provided as the final argument.
assert_not_same("x", "x") #Succeeds