This commit is contained in:
Vicent Marti
2014-06-26 12:54:08 +02:00
parent 29072d6eae
commit 659d27cae5
2 changed files with 57 additions and 20 deletions

View File

@@ -40,8 +40,7 @@ class TestRepository < Test::Unit::TestCase
assert old_repo.languages['Ruby'] > 10_000
assert old_repo.size > 30_000
old_cache = [old_commit, old_repo.cache]
new_repo = Linguist::Repository.new(rugged_repository, master_oid, old_cache)
new_repo = Linguist::Repository.incremental(rugged_repository, master_oid, old_commit, old_repo.cache)
assert new_repo.languages['Ruby'] > old_repo.languages['Ruby']
assert new_repo.size > old_repo.size