David, I tried doing this, and I get an exception. Here&#39;s a pastie of the error, controller, controller_spec: <a href="http://pastie.caboo.se/148021">http://pastie.caboo.se/148021</a><br><br><div class="gmail_quote">On Feb 5, 2008 2:02 AM, David Chelimsky &lt;<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">it &quot;should replace foo with bar partial&quot; do<br> &nbsp;page = mock(&quot;page&quot;)<br>
 &nbsp;page.should_receive(:replace_html).with(&#39;foo&#39;, :partial =&gt; &#39;bar&#39;)<br> &nbsp;controller.expect_render(:update).and_yield(page)<br> &nbsp;do_post<br>end<br><br>HTH,<br>David<br><br>&gt;<br>&gt; Brian<br>&gt;<br>&gt;<br>
&gt; _______________________________________________<br>&gt; rspec-users mailing list<br>&gt; <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>&gt; <a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
&gt;<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" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.coreyhaines.com">http://www.coreyhaines.com</a><br>The Internet&#39;s Premiere source of information about Corey Haines