test/test_git.rb in hoc-0.3 vs test/test_git.rb in hoc-0.4

- old
+ new

@@ -30,11 +30,11 @@ # Copyright:: Copyright (c) 2014 Yegor Bugayenko # License:: MIT class TestGit < Minitest::Test def test_parsing Dir.mktmpdir 'test' do |dir| - system(" + fail unless system(" set -e cd '#{dir}' git init . git config user.email test@teamed.io git config user.name test @@ -45,12 +45,10 @@ git commit -am 'modify line' rm test.txt git commit -am 'delete line' ") hits = HOC::Git.new(dir).hits - assert_equal 3, hits.size - assert_equal 1, hits[0].total - assert_equal 2, hits[1].total - assert_equal 1, hits[2].total + assert_equal 1, hits.size + assert_equal 4, hits[0].total end end end