Method: Test::Unit::Assertions#assert_not_same
- Defined in:
- lib/test/unit/assertions.rb
#assert_not_same(expected, actual, message = "") ⇒ Object
323 324 325 326 327 328 329 330 331 |
# File 'lib/test/unit/assertions.rb', line 323 def assert_not_same(expected, actual, ="") = (, <<EOT, expected, expected.__id__, actual, actual.__id__) <?> with id <?> expected to not be equal\\? to <?> with id <?>. EOT assert_block() { !actual.equal?(expected) } end |