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
'
0527d3729dd63ab5a81&follow=1'>Include sqllite closure extension in build processRené 'Necoro' Neumann4-2/+1001 2017-02-26More tag handlingRené 'Necoro' Neumann2-3/+82 2017-02-25More prefix workRené 'Necoro' Neumann3-9/+96 2017-02-25Use Peewee instead of SQLAlchemyRené 'Necoro' Neumann5-121/+96 2016-08-16FixRené 'Necoro' Neumann1-1/+1 2016-08-16Use current setuputils flowRené 'Necoro' Neumann2-0/+17 2016-08-16Basic CLIRené 'Necoro' Neumann3-0/+33 2016-08-15Initial model and sqlalchemy setupRené 'Necoro' Neumann3-0/+104