mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Serve actual content-type, not simplified
This commit is contained in:
@@ -28,8 +28,8 @@ class TestBlob < Test::Unit::TestCase
|
||||
def test_mime_type
|
||||
assert_equal "application/octet-stream", blob("dog.o").mime_type
|
||||
assert_equal "application/postscript", blob("octocat.ai").mime_type
|
||||
assert_equal "application/ruby", blob("grit.rb").mime_type
|
||||
assert_equal "application/sh", blob("script.sh").mime_type
|
||||
assert_equal "application/x-ruby", blob("grit.rb").mime_type
|
||||
assert_equal "application/x-sh", blob("script.sh").mime_type
|
||||
assert_equal "application/xml", blob("bar.xml").mime_type
|
||||
assert_equal "text/plain", blob("README").mime_type
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user