[mocha-developer] When to stub/when to mock (was Rails functional testing and Mocha)
James Mead
jamesmead44 at gmail.com
Mon Mar 5 11:51:22 EST 2007
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.
--
James.
http://blog.floehopper.org
More information about the mocha-developer
mailing list