Test render text

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.

On Dec 15, 9:32am, tamagohan [email protected] 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

You could just check the value of response.body

Thank you
Masaki.

Thanks, Fred!

I could test.

Thank you so much!
Masaki

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