From b504bbc96bb8baee9b3c4522357089b87caf0c40 Mon Sep 17 00:00:00 2001 From: nojhan Date: Fri, 17 Aug 2012 15:00:23 +0200 Subject: [PATCH] fix fake git diff for testing changes --- test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 714c433..6153238 100755 --- a/test.sh +++ b/test.sh @@ -63,11 +63,12 @@ git() "branch" ) echo "* fake_test";; "diff" ) - echo "";; + echo "2 1 fake_file" + return 1;; "status" ) echo "# Untracked";; "rev-list" ) - echo "111";; + echo 111;; esac } @@ -129,6 +130,7 @@ assert Proxy proxy assert Error 127 # echo GIT assert "GIT Branch" fake_test +assert "GIT Changes" "+2/-1" assert "GIT Commits" 111 assert "GIT Untrack" untracked assert "GIT Mark" gitmark