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/dispatch
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
..
request implement abstract store methods 2015-09-04 19:25:59 -07:00
routing Merge pull request #19788 from cmdrclueless/actionpack_http_url_ipv6 2015-09-01 01:32:54 -03:00
session implement abstract store methods 2015-09-04 19:25:59 -07:00
callbacks_test.rb Remove unused block arguments 2015-08-25 09:31:12 +05:30
cookies_test.rb Fix bug where cookies mutated by request were not persisted 2015-09-01 08:42:30 -04:00
debug_exceptions_test.rb Remove mocha from ActionPack tests 2015-09-05 16:58:40 +02:00
exception_wrapper_test.rb Remove mocha from ActionPack tests 2015-09-05 16:58:40 +02:00
header_test.rb pass a request object to the headers object 2015-08-21 11:21:10 -07:00
live_response_test.rb Remove more unused block arguments 2015-08-25 22:23:23 +05:30
mapper_test.rb routes are always constructed with a hash for the conditions 2015-08-17 16:30:53 -07:00
middleware_stack_test.rb finish deprecating handling strings and symbols 2015-08-07 15:37:31 -07:00
mime_type_test.rb deprecate accessing mime types via constants 2015-09-21 12:04:12 -07:00
mount_test.rb make the routes reader private 2015-08-18 16:33:18 -07:00
prefix_generation_test.rb Stop using deprecated render :text in test 2015-07-17 22:27:33 -04:00
rack_cache_test.rb
reloader_test.rb
request_id_test.rb
request_test.rb Remove mocha from ActionPack tests 2015-09-05 16:58:40 +02:00
response_test.rb ensure that mutating headers will impact the content_type method 2015-09-08 16:14:47 -07:00
routing_assertions_test.rb
routing_test.rb Get rid of mocha tests - part 1 2015-08-24 12:24:07 +02:00
show_exceptions_test.rb Remove extra whitespaces 2015-06-11 16:54:13 -03:00
ssl_test.rb Make config.force_ssl less dangerous to try and easier to disable 2015-09-07 17:57:20 -07:00
static_test.rb use a request object to reduce string allocations and not know about ENV keys 2015-08-06 15:12:19 -07:00
test_request_test.rb Get rid of mocha tests - part 1 2015-08-24 12:24:07 +02:00
test_response_test.rb only call methods that are on the superclass 2015-07-14 07:46:17 -07:00
uploaded_file_test.rb
url_generation_test.rb Stop using deprecated render :text in test 2015-07-17 22:27:33 -04:00