On 12/18/07, Paul E. G. Lynch
<plynchnlm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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
> --~--~---------~--~----~------------~-------~--~----~
response.body should let you get at the string.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---