mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Bust that cache
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user