[rspec-users] Stubbing #render_to_string overrides #render
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.
Am I doing something strange or wrong? If not, how can I stub
#render_to_string without affecting #render ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users