diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 17:55:34 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 17:55:34 +0200 |
commit | 84f5cffec908479ac0c32d66839aca5a8b0503ec (patch) | |
tree | c653d54ba36c9cc75e71520a643816aa23432f2e /tests/t0060-rm-tests.sh | |
parent | 021e58ac292dcfc852c35091f3adbe8334643889 (diff) | |
download | pass-84f5cffec908479ac0c32d66839aca5a8b0503ec.tar.gz pass-84f5cffec908479ac0c32d66839aca5a8b0503ec.tar.bz2 pass-84f5cffec908479ac0c32d66839aca5a8b0503ec.zip |
tests: test for spaces
Diffstat (limited to 'tests/t0060-rm-tests.sh')
-rwxr-xr-x | tests/t0060-rm-tests.sh | 7 |
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 ' |