It seems like setting up expectations in before blocks, in combination with a pending example, makes rake return non-0<br><br>We had code similar to this:<br><br>describe Model&nbsp; do<br><blockquote>before do<br>&nbsp; OtherModel.should_receive
(:some_method)<br>end<br><br>it &quot;should whatever&quot; do<br>&nbsp; pending &quot;whatever&quot;<br>end<br></blockquote>end<br><br>Removing the expectation from the before block, fixed our problem.<br><br>Stefan<br><br><br>
<div><span class="gmail_quote">2007/11/28, David Chelimsky &lt;<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Nov 28, 2007 2:38 AM, Stefan Magnus Landrø &lt;<a href="mailto:stefan.landro@gmail.com">stefan.landro@gmail.com</a>&gt; wrote:<br>&gt; We saw some annoying behavior related to pending tests.<br><br>Can you be more specific?
<br>_______________________________________________<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Bekk Open Source<br><a href="http://boss.bekk.no">http://boss.bekk.no</a>