[rspec-users] Stubbing renders

2008-09-28 Thread Nick Hoffman
Hi guys. I'm curious to know why this method of stubbing a render fails: ActionController::Base.stub!(:render_to_string).and_return 'something' And why this is [one of] the correct methods: controller.stub_render :partial => '/some/partial' Cheers, Nick __

Re: [rspec-users] Stubbing renders

2008-09-28 Thread Nick Hoffman
On 2008-09-28, at 16:33, Nick Hoffman wrote: Hi guys. I'm curious to know why this method of stubbing a render fails: ActionController::Base.stub!(:render_to_string).and_return 'something' And why this is [one of] the correct methods: controller.stub_render :partial => '/some/partial' Cheers,