blob: 0dd292221e2d04287cb57db67d2e0cb5eee3c734 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'linguist/repository'
require 'test/unit'
class TestRepository < Test::Unit::TestCase
include Linguist
def repo(base_path)
Repository.from_directory(base_path)
end
def linguist_repo
repo(File.expand_path("../..", __FILE__))
end
def test_linguist_language
# assert_equal Language['Ruby'], linguist_repo.language
end
def test_linguist_languages
# assert linguist_repo.languages[Language['Ruby']] > 10_000
end
def test_linguist_size
assert linguist_repo.size > 30_000
end
end
|