summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/mime_type_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/mime_type_test.rb b/test/unit/lib/redmine/mime_type_test.rb
index 017b61272..bad26dd48 100644
--- a/test/unit/lib/redmine/mime_type_test.rb
+++ b/test/unit/lib/redmine/mime_type_test.rb
@@ -36,6 +36,7 @@ class Redmine::MimeTypeTest < ActiveSupport::TestCase
def test_css_class_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.css_class_of(name)
@@ -49,6 +50,7 @@ class Redmine::MimeTypeTest < ActiveSupport::TestCase
def test_main_mimetype_of
to_test = {'test.txt' => 'text',
'test.c' => 'text',
+ 'TEST.JPG' => 'image',
}
to_test.each do |name, expected|
assert_equal expected, Redmine::MimeType.main_mimetype_of(name)
@@ -63,6 +65,7 @@ class Redmine::MimeTypeTest < ActiveSupport::TestCase
to_test = {['text', 'test.unk'] => false,
['text', 'test.txt'] => true,
['text', 'test.c'] => true,
+ ['image', 'TEST.JPG'] => true,
}
to_test.each do |args, expected|
assert_equal expected, Redmine::MimeType.is_type?(*args)