[rspec-users] render_views and render_to_string

Nick nick at deadorange.com
Sun Mar 6 17:48:29 EST 2011

Hey guys. One of my controller actions uses #render_to_string to send back a 
JSON response.

When I try to spec this, Ruby raises a NoMethodError, saying that 
#render_to_string doesn't exist in my controller action.

Here's the controller action, spec, and output:

Any idea what I'm doing wrong? Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110306/6962b2ec/attachment-0001.html>

More information about the rspec-users mailing list