David, I tried doing this, and I get an exception. Here'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 <<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>> 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 "should replace foo with bar partial" do<br> page = mock("page")<br>
page.should_receive(:replace_html).with('foo', :partial => 'bar')<br> controller.expect_render(:update).and_yield(page)<br> do_post<br>end<br><br>HTH,<br>David<br><br>><br>> Brian<br>><br>><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>
><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's Premiere source of information about Corey Haines