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.

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

> 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