Bust that cache

This commit is contained in:
Arfon Smith
2014-10-13 16:37:46 -05:00
parent 98e348ba5f
commit 653314448c
2 changed files with 24 additions and 2 deletions

View File

@@ -68,6 +68,18 @@ class TestRepository < Test::Unit::TestCase
assert !repo.breakdown_by_file["Ruby"].empty?
end
def test_commit_with_git_attributes_data
old_commit = '3d7364877d6794f6cc2a86b493e893968a597332'
old_repo = linguist_repo(old_commit)
attr_commit = '7ee006cbcb2d7261f9e648510a684ee9ac64126b'
new_repo = Linguist::Repository.incremental(rugged_repository, attr_commit, old_commit, old_repo.cache)
Rugged::Tree.expects(:diff).twice
new_repo.send(:compute_stats, old_commit, old_repo.cache)
end
def test_linguist_override_vendored?
attr_commit = '351c1cc8fd57340839bdb400d7812332af80e9bd'
repo = linguist_repo(attr_commit).read_index