Test for specific exit code
[stgit] / t / t1001-branch-rename.sh
index dd12132..d5d3aef 100755 (executable)
@@ -19,7 +19,7 @@ test_expect_success \
 
 test_expect_success \
     'Rename the current stgit branch' \
-    '! stg branch -r foo bar
+    'command_error stg branch -r foo bar
 '
 
 test_expect_success \