Hi all. I use render :text as below render :text => err_str, :status => 200 I want to test if rendered text But, could not check by assert_template How to test rendering? appreciate any help. Thank you Masaki. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Dec 15, 9:32 am, tamagohan <takahashi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all. > I use render :text as below > > render :text => err_str, :status => 200 > > I want to test if rendered text > But, could not check by assert_template > > How to test rendering? >You could just check the value of response.body Fred> appreciate any help. > Thank you > Masaki.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > Hi all. > > I use render :text as below > > > render :text => err_str, :status => 200 > > > I want to test if rendered text > > But, could not check by assert_template > > > How to test rendering? > > You could just check the value of response.body > > Fred > > > > > > > > > appreciate any help. > > Thank you > > Masaki.Thanks, Fred! I could test. Thank you so much! Masaki -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.