test/test_git.rb in hoc-0.4.1 vs test/test_git.rb in hoc-0.4.2

- old
+ new

@@ -49,6 +49,20 @@ hits = HOC::Git.new(dir).hits assert_equal 1, hits.size assert_equal 4, hits[0].total end end + + def test_parsing_with_empty_git + skip('fails now') + Dir.mktmpdir 'test' do |dir| + fail unless system(" + set -e + cd '#{dir}' + git init . + ") + hits = HOC::Git.new(dir).hits + assert_equal 1, hits.size + assert_equal 0, hits[0].total + end + end end