diff options
author | kennyj <kennyj@gmail.com> | 2013-06-02 00:07:58 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-06-02 00:07:58 +0900 |
commit | 74f2b41ce06492da307c7f00b011a8c5106e1151 (patch) | |
tree | 545dc0cfc1c819812dbfdf04af9aeb9135be1705 /actionpack/test/dispatch | |
parent | 6ff923a1801573577bc482384b071d598ef47aa8 (diff) | |
download | rails-74f2b41ce06492da307c7f00b011a8c5106e1151.tar.gz rails-74f2b41ce06492da307c7f00b011a8c5106e1151.tar.bz2 rails-74f2b41ce06492da307c7f00b011a8c5106e1151.zip |
Remove Mime::Type#verify_request? and Mime::Type.browser_generated_types were deprecated.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/mime_type_test.rb | 5 | ||||
-rw-r--r-- | actionpack/test/dispatch/rack_test.rb | 16 |
2 files changed, 0 insertions, 21 deletions
diff --git a/actionpack/test/dispatch/mime_type_test.rb b/actionpack/test/dispatch/mime_type_test.rb index 6a2eb7da9f..8a19129695 100644 --- a/actionpack/test/dispatch/mime_type_test.rb +++ b/actionpack/test/dispatch/mime_type_test.rb @@ -185,11 +185,6 @@ class MimeTypeTest < ActiveSupport::TestCase all_types.uniq! # Remove custom Mime::Type instances set in other tests, like Mime::GIF and Mime::IPHONE all_types.delete_if { |type| !Mime.const_defined?(type.upcase) } - assert_deprecated do - verified, unverified = all_types.partition { |type| Mime::Type.browser_generated_types.include? type } - assert verified.each { |type| assert Mime.const_get(type.upcase).verify_request?, "Verifiable Mime Type is not verified: #{type.inspect}" } - assert unverified.each { |type| assert !Mime.const_get(type.upcase).verify_request?, "Nonverifiable Mime Type is verified: #{type.inspect}" } - end end test "references gives preference to symbols before strings" do diff --git a/actionpack/test/dispatch/rack_test.rb b/actionpack/test/dispatch/rack_test.rb index 6d239d0a0c..42067854ee 100644 --- a/actionpack/test/dispatch/rack_test.rb +++ b/actionpack/test/dispatch/rack_test.rb @@ -174,22 +174,6 @@ class RackRequestParamsParsingTest < BaseRackTest end end -class RackRequestContentTypeTest < BaseRackTest - test "html content type verification" do - assert_deprecated do - @request.env['CONTENT_TYPE'] = Mime::HTML.to_s - assert @request.content_mime_type.verify_request? - end - end - - test "xml content type verification" do - assert_deprecated do - @request.env['CONTENT_TYPE'] = Mime::XML.to_s - assert !@request.content_mime_type.verify_request? - end - end -end - class RackRequestNeedsRewoundTest < BaseRackTest test "body should be rewound" do data = 'foo' |