Override for binary mime type based on languages.yml

If the extension already exists in languages.yml, it's probably not a
binary, but code.
This commit is contained in:
Simon Hafner
2012-09-13 14:55:31 -05:00
parent 567cd6ef68
commit b954d22eba
3 changed files with 15 additions and 2 deletions

View File

@@ -24,4 +24,8 @@ class TestRepository < Test::Unit::TestCase
def test_linguist_size
assert linguist_repo.size > 30_000
end
def test_binary_override
assert_equal repo(File.expand_path("../../samples/Nimrod", __FILE__)).language, Language["Nimrod"]
end
end