[rspec-users] Stubbing renders

Nick Hoffman nick at deadorange.com
Sun Sep 28 16:33:43 EDT 2008


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


More information about the rspec-users mailing list