1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Aaron Patterson efc6dd550e deprecate accessing mime types via constants
We don't want to manage a list of constants on `Mime::`.  Managing
constants is strange because it will break method caches, not to mention
looking up by a constant could cause troubles.  For example suppose
there is a top level constant `HTML`, but nobody registers the HTML mime
type and someone accesses `Mime::HTML`.  Instead of getting an error
about how the mime type doesn't exist, instead you'll get the top level
constant.

So, instead of directly accessing the constants, change this:

  Mime::HTML

To this:

  Mime::Type[:HTML]
2015-09-21 12:04:12 -07:00
..
abstract Get rid of mocha tests - part 1 2015-08-24 12:24:07 +02:00
assertions use a lookup table for assert_response 2015-07-13 18:10:36 -07:00
controller Added test for send_file_headers called with nil content type 2015-09-19 18:35:41 +05:30
dispatch deprecate accessing mime types via constants 2015-09-21 12:04:12 -07:00
fixtures Add failing spec on utf8 filename with percent character 2015-08-04 21:27:22 +09:00
journey File encoding is defaulted to utf-8 in Ruby >= 2.1 2015-09-18 17:05:05 +09:00
lib/controller
routing Remove deprecate *_path helpers in email views 2015-01-04 11:58:42 -03:00
tmp
abstract_unit.rb mostly remove the ParamsParser middleware 2015-09-18 15:36:55 -07:00