mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add test for language breakdown
This commit is contained in:
@@ -25,6 +25,11 @@ class TestRepository < Test::Unit::TestCase
|
|||||||
assert linguist_repo.size > 30_000
|
assert linguist_repo.size > 30_000
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_linguist_breakdown
|
||||||
|
assert linguist_repo.breakdown_by_file.has_key?("Ruby")
|
||||||
|
assert linguist_repo.breakdown_by_file["Ruby"].include?("bin/linguist")
|
||||||
|
end
|
||||||
|
|
||||||
def test_binary_override
|
def test_binary_override
|
||||||
assert_equal repo(File.expand_path("../../samples/Nimrod", __FILE__)).language, Language["Nimrod"]
|
assert_equal repo(File.expand_path("../../samples/Nimrod", __FILE__)).language, Language["Nimrod"]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user