Add flash mime type

This commit is contained in:
Joshua Peek
2011-06-02 10:49:36 -05:00
parent 68110310a7
commit 8fc89d1d4f
3 changed files with 7 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ class TestMime < Test::Unit::TestCase
assert_equal 'application/sh', Mime.mime_for(".sh")
assert_equal 'application/latex', Mime.mime_for(".latex")
assert_equal 'application/shockwave-flash', Mime.mime_for(".swf")
assert_equal 'application/octet-stream', Mime.mime_for(".dmg")
assert_equal 'application/octet-stream', Mime.mime_for(".exe")
assert_equal 'application/octet-stream', Mime.mime_for(".dll")
@@ -38,6 +40,7 @@ class TestMime < Test::Unit::TestCase
assert_equal 'text/plain; charset=utf-8', Mime.content_type_for(".sh")
assert_equal 'text/plain; charset=utf-8', Mime.content_type_for(".latex")
assert_equal 'application/octet-stream', Mime.content_type_for(".swf")
assert_equal 'application/octet-stream', Mime.content_type_for(".dmg")
assert_equal 'application/octet-stream', Mime.content_type_for(".exe")
assert_equal 'application/octet-stream', Mime.content_type_for(".dll")