mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Trim down mime type overrides that are old or now pushed upstream
Related #206
This commit is contained in:
		| @@ -31,18 +31,18 @@ class TestBlob < Test::Unit::TestCase | ||||
|  | ||||
|   def test_mime_type | ||||
|     assert_equal "application/octet-stream", blob("Binary/dog.o").mime_type | ||||
|     assert_equal "application/ogg", blob("Binary/foo.ogg").mime_type | ||||
|     assert_equal "application/postscript", blob("Binary/octocat.ai").mime_type | ||||
|     assert_equal "application/x-ruby", blob("Ruby/grit.rb").mime_type | ||||
|     assert_equal "application/x-sh", blob("Shell/script.sh").mime_type | ||||
|     assert_equal "application/xml", blob("XML/bar.xml").mime_type | ||||
|     assert_equal "audio/ogg", blob("Binary/foo.ogg").mime_type | ||||
|     assert_equal "text/plain", blob("Text/README").mime_type | ||||
|   end | ||||
|  | ||||
|   def test_content_type | ||||
|     assert_equal "application/octet-stream", blob("Binary/dog.o").content_type | ||||
|     assert_equal "application/ogg", blob("Binary/foo.ogg").content_type | ||||
|     assert_equal "application/pdf", blob("Binary/foo.pdf").content_type | ||||
|     assert_equal "audio/ogg", blob("Binary/foo.ogg").content_type | ||||
|     assert_equal "image/png", blob("Binary/foo.png").content_type | ||||
|     assert_equal "text/plain; charset=iso-8859-2", blob("Text/README").content_type | ||||
|   end | ||||
| @@ -268,6 +268,7 @@ class TestBlob < Test::Unit::TestCase | ||||
|   def test_language | ||||
|     Samples.each do |sample| | ||||
|       blob = blob(sample[:path]) | ||||
|       assert blob.language, "No language for #{sample[:path]}" | ||||
|       assert_equal sample[:language], blob.language.name, blob.name | ||||
|     end | ||||
|   end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user