summaryrefslogtreecommitdiff
path: root/tests/t0060-rm-tests.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 17:55:34 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 17:55:34 +0200
commit84f5cffec908479ac0c32d66839aca5a8b0503ec (patch)
treec653d54ba36c9cc75e71520a643816aa23432f2e /tests/t0060-rm-tests.sh
parent021e58ac292dcfc852c35091f3adbe8334643889 (diff)
downloadpass-84f5cffec908479ac0c32d66839aca5a8b0503ec.tar.gz
pass-84f5cffec908479ac0c32d66839aca5a8b0503ec.tar.bz2
pass-84f5cffec908479ac0c32d66839aca5a8b0503ec.zip
tests: test for spaces
Diffstat (limited to 'tests/t0060-rm-tests.sh')
-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
'