Add a test for the 'mail --attach' command
[stgit] / t / t2200-rebase.sh
index 882572c..ec2a104 100755 (executable)
@@ -31,4 +31,16 @@ test_expect_success \
        test `stg applied | wc -l` = 1
        '
 
+test_expect_success \
+       'Attempt rebase to non-existing commit' \
+       '
+       ! stg rebase not-a-ref
+       '
+
+test_expect_success \
+       'Check patches were re-applied' \
+       '
+       test $(stg applied | wc -l) = 1
+       '
+
 test_done