Commit 234e5190 authored by maeda's avatar maeda

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


git-svn-id: https://svn.redmine.org/redmine/trunk@17471 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0c70a7ee
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment