[mocha-developer] When to stub/when to mock (was Rails functional testing and Mocha)

David Chelimsky dchelimsky at gmail.com
Mon Mar 5 12:03:13 EST 2007

On 3/5/07, James Mead <jamesmead44 at gmail.com> wrote:
> Yes - I understand what you are doing and agree that our goals are the same.
> Query vs Command isn't the only way I decide whether to stub or expect. I
> (nearly) always stub Queries, but I don't always expect Commands. Using the
> "one assertion per test" idea I select at most one Command to expect per
> test. Also I don't tend to use a setup method.

Cool. Thanks for the feedback.


> --
> James.
> http://blog.floehopper.org
> _______________________________________________
> mocha-developer mailing list
> mocha-developer at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mocha-developer

More information about the mocha-developer mailing list