And, of course, here are my versions:<br><br>Ruby 1.8.6<br>Rails 2.0.2<br>Zentest 3.8<br>RSpec (I believe 1.1.2)<br><br><br><div class="gmail_quote">On Feb 5, 2008 7:42 PM, Corey Haines <<a href="mailto:coreyhaines@gmail.com">coreyhaines@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;">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" target="_blank">http://pastie.caboo.se/148021</a><div>
<div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Feb 5, 2008 2:02 AM, David Chelimsky <<a href="mailto:dchelimsky@gmail.com" target="_blank">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" target="_blank">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" target="_blank">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></div></div><font color="#888888">-- <br><a href="http://www.coreyhaines.com" target="_blank">http://www.coreyhaines.com</a><br>The Internet's Premiere source of information about Corey Haines
</font></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