Fix the sink command for various test cases
[stgit] / t / t0002-status.sh
index 43e1ca0..a030739 100755 (executable)
@@ -171,4 +171,15 @@ test_expect_success 'Status of disappeared newborn' '
     diff -u expected.txt output.txt
 '
 
+cat > expected.txt <<EOF
+A fay
+D fie
+EOF
+test_expect_success 'Status after renaming a file' '
+    git rm foo/bar &&
+    git mv fie fay &&
+    stg status > output.txt &&
+    diff -u expected.txt output.txt
+'
+
 test_done