diff options
author | Gaurav Sharma <gaurav2728@gmail.com> | 2015-09-26 00:20:41 +0530 |
---|---|---|
committer | Gaurav Sharma <gaurav2728@gmail.com> | 2015-09-26 00:20:41 +0530 |
commit | 2b8a862365e1826eb89abed152517a45046669c6 (patch) | |
tree | 50ade17b2e7c2feeeb8eb1247faff4d270194a55 /actionpack/test/dispatch | |
parent | 3c52b2000cbee716b5e449974c312c4fb552f64f (diff) | |
download | rails-2b8a862365e1826eb89abed152517a45046669c6.tar.gz rails-2b8a862365e1826eb89abed152517a45046669c6.tar.bz2 rails-2b8a862365e1826eb89abed152517a45046669c6.zip |
fix Mime type in doc since mime types via constants is deprecated [ci skip]
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/mime_type_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/mime_type_test.rb b/actionpack/test/dispatch/mime_type_test.rb index d9fb44f06d..91f6f66fe3 100644 --- a/actionpack/test/dispatch/mime_type_test.rb +++ b/actionpack/test/dispatch/mime_type_test.rb @@ -154,10 +154,10 @@ class MimeTypeTest < ActiveSupport::TestCase end test "type convenience methods" do - # Don't test Mime::ALL, since it Mime::ALL#html? == true + # Don't test Mime::Type[:ALL], since it Mime::Type[:ALL].html? == true types = Mime::SET.symbols.uniq - [:all, :iphone] - # Remove custom Mime::Type instances set in other tests, like Mime::GIF and Mime::IPHONE + # Remove custom Mime::Type instances set in other tests, like Mime::Type[:GIF] and Mime::Type[:IPHONE] types.delete_if { |type| !Mime::Type.registered?(type.upcase) } types.each do |type| @@ -186,7 +186,7 @@ class MimeTypeTest < ActiveSupport::TestCase test "verifiable mime types" do all_types = Mime::SET.symbols all_types.uniq! - # Remove custom Mime::Type instances set in other tests, like Mime::GIF and Mime::IPHONE + # Remove custom Mime::Type instances set in other tests, like Mime::Type[:GIF] and Mime::Type[:IPHONE] all_types.delete_if { |type| !Mime::Type.registered?(type.upcase) } end |