This project is archived and is in readonly mode.

#141 ✓resolved
Chris Hapgood

assert_response assumes a rendered template

Reported by Chris Hapgood | May 7th, 2008 @ 11:23 PM

Since changeset 8559, assert_response assumes it can find the instance variable @exception in the rendered template. This is not the case if the exception is being rescued and the response is something other than a rendered template. For example...

In this example, xml error responses are created without a template -and this breaks assert_response.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages