[rspec-users] rspec - rails put :update any examples

Corey Haines coreyhaines at gmail.com
Tue Feb 5 19:42:10 EST 2008


David, I tried doing this, and I get an exception. Here's a pastie of the
error, controller, controller_spec: http://pastie.caboo.se/148021

On Feb 5, 2008 2:02 AM, David Chelimsky <dchelimsky at gmail.com> wrote:

> it "should replace foo with bar partial" do
>  page = mock("page")
>  page.should_receive(:replace_html).with('foo', :partial => 'bar')
>  controller.expect_render(:update).and_yield(page)
>  do_post
> end
>
> HTH,
> David
>
> >
> > Brian
> >
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
http://www.coreyhaines.com
The Internet's Premiere source of information about Corey Haines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080205/91031d1a/attachment.html 


More information about the rspec-users mailing list