[mocha-developer] Bug #17118 - expectations should take precedence over stubs

James Mead jamesmead44 at gmail.com
Mon Jan 21 12:34:54 EST 2008


Sorry Dan - for some reason MailMan's content filtering didn't like your
signature attachment or something...

---------- Forwarded message ----------
From: Dan North <dan at tastapod.com>
To: mocha-developer at rubyforge.org
Date: Sun, 20 Jan 2008 21:22:00 +0000
Subject: Re: [mocha-developer] Bug #17118 - expectations should take
precedence over stubs

Hi James.

I agree in principle but disagree in this specific case (the never()
expectation).

For my two penn'orth, never() should both match and fail fast if an
invocation matches. It shouldn't matter whether or not you have a stub (so
stubbing in a setup method would be irrelevant in this case, but it's still
icky).

Cheers,
Dan

-- 
James.
http://blog.floehopper.org
http://tumble.floehopper.org


More information about the mocha-developer mailing list