On 09/10/06, <b class="gmail_sendername">Bryan Helmkamp</b> &lt;<a href="mailto:bhelmkamp@gmail.com">bhelmkamp@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
One consideration I'd like to throw out there is the duplication of<br>the returned value (or, equivalently, the raised exception).&nbsp;&nbsp;For my<br>original example, I don't see a need to re-specify the results for the<br>save!() and find() calls when I add my expectations.
<br></blockquote></div><br>Good point. Actually going with suggestion 3 would mean you didn't need to repeat anything - basically the key difference for this case is that you have a means of modifying an existing expectation - in particular the ability to make it assert (and perhaps to stop it asserting).
<br clear="all"><br>-- <br>James.<br><a href="http://blog.floehopper.org">http://blog.floehopper.org</a>