On 3 Feb 2010, at 11:35, J. B. Rainsberger wrote:

I find this rule of thumb helpful: stub unless you're certain to want
to verify this time that the client invoke the server correctly, and
never, never mock multiple methods at once.

Right, because the mock (should_receive) is an assertion, and it's usually better to have one assertion per example.

cheers,
Matt

http://mattwynne.net
+447974 430184

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to