1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-02 13:49:42 +00:00

Test that Redmine::MimeType.of is case-insensitive (#29359).

git-svn-id: http://svn.redmine.org/redmine/trunk@17471 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2018-08-15 01:23:56 +00:00
parent ca6bf98c61
commit 371d84556f

View File

@ -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)