spec/git_utils_spec.rb: add test for truncating within color escape sequence

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>