def test_blame
Git.any_instance.expects(:blame).returns(fixture('blame'))
b = Blob.blame(@r, 'master', 'lib/grit.rb')
assert_equal 13, b.size
assert_equal 25, b.inject(0) { |acc, x| acc + x.last.size }
assert_equal b[0].first.object_id, b[9].first.object_id
c = b.first.first
c.expects(:__bake__).times(0)
assert_equal '634396b2f541a9f2d58b00be1a07f0c358b999b3', c.id
assert_equal 'Tom Preston-Werner', c.author.name
assert_equal 'tom@mojombo.com', c.author.email
assert_equal Time.at(1191997100), c.authored_date
assert_equal 'Tom Preston-Werner', c.committer.name
assert_equal 'tom@mojombo.com', c.committer.email
assert_equal Time.at(1191997100), c.committed_date
assert_equal 'initial grit setup', c.message
end