[rspec-users] Stubbing renders
nick at deadorange.com
Sun Sep 28 16:41:25 EDT 2008
On 2008-09-28, at 16:33, Nick Hoffman wrote:
> Hi guys. I'm curious to know why this method of stubbing a render
> ActionController::Base.stub!(:render_to_string).and_return 'something'
> And why this is [one of] the correct methods:
> controller.stub_render :partial => '/some/partial'
Please ignore that email. I should be calling #stub! on the controller
in question, rather than on ActionController::Base , like so:
More information about the rspec-users