aboutsummaryrefslogtreecommitdiff
path: root/tests/cli-opts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli-opts.sh')
-rwxr-xr-xtests/cli-opts.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh
index aa065d9..bbec933 100755
--- a/tests/cli-opts.sh
+++ b/tests/cli-opts.sh
@@ -89,30 +89,5 @@ test_version_flags() {
test_ok
}
-test_unsupported_flags_are_treated_as_arguments() {
- testing 'usupported flags are treated as arguments'
-
- OUT="$(mktemp)"
- ERR="$(mktemp)"
- ./git-permalink --first-flag --second-flag 1>"$OUT" 2>"$ERR"
- STATUS=$?
- assert_status 0
- assert_empty_stdout
- assert_fgrep_stderr "--first-flag"
- assert_fgrep_stderr "--second-flag"
-
- OUT="$(mktemp)"
- ERR="$(mktemp)"
- ./git-permalink -p --first-flag --second-flag 1>"$OUT" 2>"$ERR"
- STATUS=$?
- assert_status 0
- assert_empty_stderr
- assert_fgrep_stdout "--first-flag"
- assert_fgrep_stdout "--second-flag"
-
- test_ok
-}
-
test_help_flags
test_version_flags
-test_unsupported_flags_are_treated_as_arguments