On Wed, Feb 3, 2010 at 8:18 AM, Matt Wynne <m...@mattwynne.net> wrote:
>
> 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.

Over here to the east of the pond, we say "expectation." :)

> cheers,
> Matt
>
> http://mattwynne.net
> +447974 430184
>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to