rails/actionpack/test
Andrew White 66eb3f02cc Raise ActionController::BadRequest for malformed parameter hashes.
Currently Rack raises a TypeError when it encounters a malformed or
ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this
through to the application this commit captures the exception and
re-raises it using a new ActionController::BadRequest exception.

The new ActionController::BadRequest exception returns a 400 error
instead of the 500 error that would've been returned by the original
TypeError. This allows exception notification libraries to ignore
these errors if so desired.

Closes #3051
2012-05-20 19:07:04 +01:00
..
abstract Add a test case for layout nil. 2012-03-28 23:06:52 +04:00
activerecord Support cookie jar options for all cookie stores 2012-04-30 04:14:51 +04:00
assertions test response assertions 2012-01-06 11:20:26 -08:00
controller Raise Assertion instead of RoutingError for routing assertion failures. 2012-05-20 06:21:32 -05:00
dispatch Raise ActionController::BadRequest for malformed parameter hashes. 2012-05-20 19:07:04 +01:00
fixtures Merge pull request #6309 from steveklabnik/fix-2394 2012-05-17 10:19:27 -07:00
lib/controller Removing old Controller test 2012-02-12 21:05:30 -02:00
routing add some tests, yay! 2012-02-22 11:05:03 -08:00
template Clarify grouped_options_for_select method API, add changelog entry 2012-05-19 09:58:14 -03:00
tmp Use safe tmp dir 2009-08-13 21:03:25 -05:00
abstract_unit.rb Remove useless load path modifications 2012-05-11 19:00:35 -03:00
active_record_unit.rb Autoload AR test case 2010-01-04 16:50:01 -06:00
ts_isolated.rb Don't use assert_block method. It will be deprecated. 2012-05-20 00:14:40 +09:00