# File test/test_commit_stats.rb, line 5 def setup File.expects(:exist?).returns(true) @r = Repo.new(GRIT_REPO) Git.any_instance.expects(:log).returns(fixture('log')) @stats = @r.commit_stats end