summaryrefslogtreecommitdiff
path: root/tests/t0060-rm-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/t0060-rm-tests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/t0060-rm-tests.sh b/tests/t0060-rm-tests.sh
index 29fa34a..58f55f3 100755
--- a/tests/t0060-rm-tests.sh
+++ b/tests/t0060-rm-tests.sh
@@ -11,6 +11,13 @@ test_expect_success 'Test "rm" command' '
[[ ! -e $PASSWORD_STORE_DIR/cred1.gpg ]]
'
+test_expect_success 'Test "rm" command with spaces' '
+ "$PASS" generate "hello i have spaces" 43 &&
+ [[ -e $PASSWORD_STORE_DIR/"hello i have spaces".gpg ]] &&
+ "$PASS" rm "hello i have spaces" &&
+ [[ ! -e $PASSWORD_STORE_DIR/"hello i have spaces".gpg ]]
+'
+
test_expect_success 'Test "rm" of non-existent password' '
test_must_fail "$PASS" rm does-not-exist
'