rails/actionpack/test
Angelo capilleri a8560fa361 if format is unknown NullMimeTypeObject is returned
If a unknown format is passed in a request, the methods html?, xml?, json? ...etc
Nil Exception.

This patch add a class NullMimeTypeObject, that is returned when  request.format is unknown
and it responds false to the methods that ends with '?'.

It refers to #7837, not fixes because it's not considered a improvement not a bug.
2012-10-31 15:07:37 +01:00
..
abstract add lazy look up in abstract controller's translate method 2012-07-18 10:33:14 +03:00
activerecord cleanup, remove trailing whitespace within actionpack 2012-10-27 16:03:18 +02:00
assertions test response assertions 2012-01-06 11:20:26 -08:00
controller cleanup, remove trailing whitespace within actionpack 2012-10-27 16:03:18 +02:00
dispatch if format is unknown NullMimeTypeObject is returned 2012-10-31 15:07:37 +01:00
fixtures Allow for deep directory path for view templates. 2012-10-11 17:36:58 +01:00
lib/controller Add HTML5 input[type="color"] helper 2012-05-21 17:23:48 -03:00
routing add some tests, yay! 2012-02-22 11:05:03 -08:00
template Fix failing tests and use new hash style in deprecation messages 2012-10-29 13:57:00 -02:00
tmp Use safe tmp dir 2009-08-13 21:03:25 -05:00
abstract_unit.rb Define a SynchronousQueue for test in Action Pack. 2012-09-12 15:33:42 -03:00
active_record_unit.rb Rename "Fixtures" class to "FixtureSet" 2012-10-07 19:15:58 +02:00
ts_isolated.rb Don't use assert_block method. It will be deprecated. 2012-05-20 00:14:40 +09:00