Method: MiniTest::Assertions#refute_same
- Defined in:
- lib/minitest/unit.rb
#refute_same(exp, act, msg = nil) ⇒ Object
Fails if exp
is the same (by object identity) as act
.
498 499 500 501 502 503 504 |
# File 'lib/minitest/unit.rb', line 498 def refute_same exp, act, msg = nil msg = (msg) { data = [mu_pp(act), act.object_id, mu_pp(exp), exp.object_id] "Expected %s (oid=%d) to not be the same as %s (oid=%d)" % data } refute exp.equal?(act), msg end |