From 371d84556f086b61328c1e738edbe7642ecd15aa Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 15 Aug 2018 01:23:56 +0000 Subject: Test that Redmine::MimeType.of is case-insensitive (#29359). git-svn-id: http://svn.redmine.org/redmine/trunk@17471 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/lib/redmine/mime_type_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/unit/lib') diff --git a/test/unit/lib/redmine/mime_type_test.rb b/test/unit/lib/redmine/mime_type_test.rb index 08aacf4b2..017b61272 100644 --- a/test/unit/lib/redmine/mime_type_test.rb +++ b/test/unit/lib/redmine/mime_type_test.rb @@ -22,6 +22,7 @@ class Redmine::MimeTypeTest < ActiveSupport::TestCase def test_of to_test = {'test.txt' => 'text/plain', 'test.c' => 'text/x-c', + 'TEST.JPG' => 'image/jpeg', } to_test.each do |name, expected| assert_equal expected, Redmine::MimeType.of(name) -- cgit v1.2.3