Viewing html rendered during a test

Is it possible to view the html rendered in a test?

Im testing an assert_select and its not passing though in the broswer
all is fine.
The test tells me what the assert_select expected but id like to see
what was there to make it fail. That way i can fix my code.

Adam A. wrote:

Is it possible to view the html rendered in a test?

Im testing an assert_select and its not passing though in the broswer
all is fine.
The test tells me what the assert_select expected but id like to see
what was there to make it fail. That way i can fix my code.

You should just be able to dump response.body to get the HTML.

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

thanks for your reply. Im going to give that a whirl now.

adam