summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-08-15 01:23:56 +0000
committerGo MAEDA <maeda@farend.jp>2018-08-15 01:23:56 +0000
commit371d84556f086b61328c1e738edbe7642ecd15aa (patch)
tree0734fd4da01f84a56cd9b13e2cdd70a190554dc5 /test
parentca6bf98c61488e04526837ea0b7cf5b434948529 (diff)
downloadredmine-371d84556f086b61328c1e738edbe7642ecd15aa.tar.gz
redmine-371d84556f086b61328c1e738edbe7642ecd15aa.zip
Test that Redmine::MimeType.of is case-insensitive (#29359).
git-svn-id: http://svn.redmine.org/redmine/trunk@17471 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/mime_type_test.rb1
1 files changed, 1 insertions, 0 deletions
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)