[rspec-users] Stubbing #render_to_string overrides #render

Nick nick at deadorange.com
Tue Aug 16 14:51:11 EDT 2011

On Tuesday, August 16, 2011 8:02:08 AM UTC-4, dchel... at gmail.com wrote:
> IIRC, render(:json) eventually goes through render_to_string, which would 
> explain the behavior you're seeing. I could be wrong, but have a look at the 
> Rails code as a starting point.

Thanks, David. I'll trace through Rails' #render to see what's going on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110816/1f07d1cc/attachment.html>

More information about the rspec-users mailing list