[mocha-developer] Mocha Koan

Nick Kallen nick at pivotalsf.com
Wed Aug 13 23:45:23 EDT 2008

try this in a test:

def test_foo
  foo = Object.new
  assert !foo.verified?

The test will fail (it should not). The way #verified? is implemented
is unsafe, clearly. (the test is nicely paradoxical, since the
assertion passes only if the test will fail!)

More information about the mocha-developer mailing list