diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-04 15:56:29 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-04 15:56:29 -0700 |
commit | 7995c03dc0e8ff8448427de16c98f77aa8bb6a01 (patch) | |
tree | eb862366f3fe31386ba6e5d5e214264951c7ef9f /actionpack/test/dispatch | |
parent | a497bed1130427b3bcf717c29ca3b6edf07a5c04 (diff) | |
parent | 69723138ad67a3c0b708b907f2831531cf87e55b (diff) | |
download | rails-7995c03dc0e8ff8448427de16c98f77aa8bb6a01.tar.gz rails-7995c03dc0e8ff8448427de16c98f77aa8bb6a01.tar.bz2 rails-7995c03dc0e8ff8448427de16c98f77aa8bb6a01.zip |
Merge pull request #7522 from lexmag/mime_type
Refactor `Mime::Type`
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/mime_type_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/mime_type_test.rb b/actionpack/test/dispatch/mime_type_test.rb index ed012093a7..3e83f3d4fa 100644 --- a/actionpack/test/dispatch/mime_type_test.rb +++ b/actionpack/test/dispatch/mime_type_test.rb @@ -92,7 +92,7 @@ class MimeTypeTest < ActiveSupport::TestCase # (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1) test "parse other broken acceptlines" do accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, , pronto/1.00.00, sslvpn/1.00.00.00, */*" - expect = ['image/gif', 'image/x-xbitmap', 'image/jpeg','image/pjpeg', 'application/x-shockwave-flash', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/msword', 'pronto/1.00.00', 'sslvpn/1.00.00.00', Mime::ALL ] + expect = ['image/gif', 'image/x-xbitmap', 'image/jpeg','image/pjpeg', 'application/x-shockwave-flash', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/msword', 'pronto/1.00.00', 'sslvpn/1.00.00.00', Mime::ALL] assert_equal expect, Mime::Type.parse(accept).collect { |c| c.to_s } end |