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.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/mime_type_test.rb b/test/unit/lib/redmine/mime_type_test.rb
index 2a111edef..d44f9fe87 100644
--- a/test/unit/lib/redmine/mime_type_test.rb
+++ b/test/unit/lib/redmine/mime_type_test.rb
@@ -58,4 +58,9 @@ class Redmine::MimeTypeTest < ActiveSupport::TestCase
assert_equal expected, Redmine::MimeType.is_type?(*args)
end
end
+
+ def test_should_default_to_mime_type_gem
+ assert !Redmine::MimeType::EXTENSIONS.keys.include?("zip")
+ assert_equal "application/zip", Redmine::MimeType.of("file.zip")
+ end
end