mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user