[rspec-users] Stubbing #render_to_string overrides #render

Nick nick at deadorange.com
Mon Aug 8 11:36:06 EDT 2011


Hey folks. In my controller specs, when I stub #render_to_string, #render is 
also stubbed out. Thus, if a controller action calls #render, the stubbed 
#render returns what #render_to_string returns, which causes specs to fail.

http://pastie.org/2339809

Am I doing something strange or wrong? If not, how can I stub 
#render_to_string without affecting #render ?

Thanks,
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110808/4b7162d1/attachment-0001.html>


More information about the rspec-users mailing list