From 84f5cffec908479ac0c32d66839aca5a8b0503ec Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 24 Apr 2014 17:55:34 +0200 Subject: tests: test for spaces --- tests/t0060-rm-tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/t0060-rm-tests.sh') 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 ' -- cgit v1.2.3