9 :save-display status-before.screen
14 :save-display unstaged-changes.screen
18 :save-display status-after.screen
25 echo "Hello" > hello.txt
27 git_commit
-m "first commit"
28 echo "Hello2" >> hello.txt
33 assert_equals
'status-before.screen' <<EOF
35 Changes to be committed:
37 Changed but not updated:
44 [status] Nothing to update 100%
47 assert_equals
'unstaged-changes.screen' <<EOF
49 1 file changed, 1 insertion(+)
51 diff --git a/hello.txt b/hello.txt
52 index e965047..7197273 100644
58 [stage] Press '<Enter>' to jump to file diff - line 1 of 10 100%
61 assert_equals
'status-after.screen' <<EOF
63 Changes to be committed:
65 Changed but not updated:
72 [status] Press u to unstage 'hello.txt' for commit 100%