Thanks, Pedro.
I notice that you've had to monkey-patch
Mocha::Expectation#initialize. This is not part of Mocha's API and so
this integration is potentially brittle.
I you define a custom AssertionCounter and pass an instance of it into
Mocha::API#mocha_verify, I think you could avoid this problem. See
Mocha::Integration::TestUnit::AssertionCounter &
Mocha::Integration::TestUnit::RubyVersion186AndAbove for an example.
I don't know much about the inner workings of Bacon, but I've sketched
out what I mean here [1]. Note that I haven't tested this.
Cheers, James.
Hi Pedro,
Many thanks for your work on this. I hope you get the patch to Bacon accepted.
Cheers, James.