On Jan 25, 2008 7:19 AM, Rob Holland <[EMAIL PROTECTED]> wrote:
> David,
>
> Thanks for looking at the problem.
>
> > The trick here is that render :partial is NOT getting called on the
> > controller - it's getting called on the template that is yielded to
> > render :update.
>
> I think I follow,
David,
Thanks for looking at the problem.
> The trick here is that render :partial is NOT getting called on the
> controller - it's getting called on the template that is yielded to
> render :update.
I think I follow, still getting my head around that.
> Here's the way I would handle this: http
On Jan 23, 2008 5:25 AM, Rob Holland <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to spec a controller method which renders some rjs as part
> of a render :update block. The problem I'm having is that stub_render
> or expect_render don't seem to allow and_return to work.
>
> The controller metho
I've experienced very strange behavior with expect_render and
stub_render as well as putting expectations on self in helper tests...
It seems a lot of this weirdness started when I upgraded the rails
plugin from 1.1.0 to 1.1.2. I use mocha instead of the rspec mocks -
don't know if that is a ca
Hi,
I'm trying to spec a controller method which renders some rjs as part
of a render :update block. The problem I'm having is that stub_render
or expect_render don't seem to allow and_return to work.
The controller method does:
if @thing.save
render :update do