This project is archived and is in readonly mode.

#851 ✓resolved

add client_error? to TestResponseBehavior

Reported by cainlevy | August 18th, 2008 @ 02:38 AM | in 2.x

ActionController::TestResponseBehavior has easy methods to check if the response code was a success (2xx), redirect (3xx), or server error (5xx). The attached patch (with test) adds a simple query method to check if the response was a client error (4xx).

This makes my tests prettier. :)

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=""></a>

People watching this ticket


Referenced by