Rename 'client' commit-msg.
authorStephen Haberman <stephen@exigencecorp.com>
Fri, 20 Jun 2008 04:42:13 +0000 (23:42 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Fri, 20 Jun 2008 04:42:13 +0000 (23:42 -0500)
tests/t1000-client-commit-msg-ticket-hook.sh [new file with mode: 0644]
tests/t1000-commit-msg-ticket-hook.sh [deleted file]

diff --git a/tests/t1000-client-commit-msg-ticket-hook.sh b/tests/t1000-client-commit-msg-ticket-hook.sh
new file mode 100644 (file)
index 0000000..0e4146e
--- /dev/null
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+test_description='client commit-msg ticket enforcer'
+
+. ./test-lib.sh
+
+# setup the commit-msg hook
+install_client_hook 'commit-msg' 'commit-msg'
+
+test_expect_success 'rejects with bad message' '
+       echo "$test_name" >file &&
+       git add file &&
+       ! git commit -m "first"
+'
+
+test_expect_success 'rejects with re:' '
+       echo "$test_name" >file &&
+       git add file &&
+       ! git commit -m "first re: #3200"
+'
+
+test_expect_success 'rejects with re no space' '
+       echo "$test_name" >file &&
+       git add file &&
+       ! git commit -m "first re#3200"
+'
+
+test_expect_success 'accepts with re' '
+       echo "$test_name" >file &&
+       git add file &&
+       git commit -m "first re #3200"
+'
+
+test_expect_success 'accepts with re on the second line' '
+       echo "$test_name" >file &&
+       git add file &&
+       echo "line one" >msg &&
+       echo "line two re #3200" >>msg &&
+       git commit -F msg
+'
+
+test_expect_success 'accepts with RE' '
+       echo "$test_name" >file &&
+       git add file &&
+       git commit -m "first RE #3200"
+'
+
+test_expect_success 'accepts with refs' '
+       echo "$test_name" >file &&
+       git add file &&
+       git commit -m "first refs #3200"
+'
+
+test_expect_success 'accepts with qa' '
+       echo "$test_name" >file &&
+       git add file &&
+       git commit -m "first qa #3200"
+'
+
+test_expect_success 'accepts with no ticket' '
+       echo "$test_name" >file &&
+       git add file &&
+       git commit -m "first no ticket"
+'
+
+test_done
+
diff --git a/tests/t1000-commit-msg-ticket-hook.sh b/tests/t1000-commit-msg-ticket-hook.sh
deleted file mode 100644 (file)
index c8b4e9b..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-test_description='client commit-msg ticket enforcer'
-
-. ./test-lib.sh
-
-# setup the commit-msg hook
-install_client_hook 'commit-msg' 'commit-msg'
-
-test_expect_success 'rejects with bad message' '
-       echo "$test_name" >file &&
-       git add file &&
-       ! git commit -m "first"
-'
-
-test_expect_success 'rejects with re:' '
-       echo "$test_name" >file &&
-       git add file &&
-       ! git commit -m "first re: #3200"
-'
-
-test_expect_success 'rejects with re no space' '
-       echo "$test_name" >file &&
-       git add file &&
-       ! git commit -m "first re#3200"
-'
-
-test_expect_success 'accepts with re' '
-       echo "$test_name" >file &&
-       git add file &&
-       git commit -m "first re #3200"
-'
-
-test_expect_success 'accepts with re on the second line' '
-       echo "$test_name" >file &&
-       git add file &&
-       echo "line one" >msg
-       echo "line two re #3200" >>msg
-       git commit -F msg
-'
-
-test_expect_success 'accepts with RE' '
-       echo "$test_name" >file &&
-       git add file &&
-       git commit -m "first RE #3200"
-'
-
-test_expect_success 'accepts with refs' '
-       echo "$test_name" >file &&
-       git add file &&
-       git commit -m "first refs #3200"
-'
-
-test_expect_success 'accepts with qa' '
-       echo "$test_name" >file &&
-       git add file &&
-       git commit -m "first qa #3200"
-'
-
-test_expect_success 'accepts with no ticket' '
-       echo "$test_name" >file &&
-       git add file &&
-       git commit -m "first no ticket"
-'
-
-test_done
-