Index by language object

This commit is contained in:
Joshua Peek
2011-05-21 20:58:54 -05:00
parent 6f22ca4fa0
commit 6f1f71ae23
2 changed files with 13 additions and 27 deletions

View File

@@ -49,8 +49,8 @@ class TestRepository < Test::Unit::TestCase
end
def test_linguist_languages
assert linguist_repo.languages['Ruby'] > 30_000
assert linguist_repo.languages['Python'] < 1000
assert linguist_repo.languages[Language['Ruby']] > 30_000
assert linguist_repo.languages[Language['Python']] < 1000
end
def test_linguist_size