Testing rendered output

I would like to check that one of the methods in my controller
produces the expected rendered output. The method in question just
returns a JSON string, so it’s not like I’m trying to check a whole
web page or something. Is there a way to get the rendered output
somehow? I looked at the TestResponse methods (checking the source)
and there didn’t seem to be anything useful there.

Thanks,
–Paul

On 12/18/07, Paul E. G. Lynch [email protected] wrote:

–~--~---------~–~----~------------~-------~–~----~
response.body should let you get at the string.

Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs