summaryrefslogtreecommitdiff
path: root/tests/t0020-show-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/t0020-show-tests.sh
parent021e58ac292dcfc852c35091f3adbe8334643889 (diff)
downloadpass-84f5cffec908479ac0c32d66839aca5a8b0503ec.tar.gz
pass-84f5cffec908479ac0c32d66839aca5a8b0503ec.tar.bz2
pass-84f5cffec908479ac0c32d66839aca5a8b0503ec.zip
tests: test for spaces
Diffstat (limited to '')
-rwxr-xr-xtests/t0020-show-tests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/t0020-show-tests.sh b/tests/t0020-show-tests.sh
index e55e574..a4b782f 100755
--- a/tests/t0020-show-tests.sh
+++ b/tests/t0020-show-tests.sh
@@ -10,6 +10,11 @@ test_expect_success 'Test "show" command' '
"$PASS" show cred1
'
+test_expect_success 'Test "show" command with spaces' '
+ "$PASS" insert -e "I am a cred with lots of spaces"<<<"BLAH!!" &&
+ [[ $("$PASS" show "I am a cred with lots of spaces") == "BLAH!!" ]]
+'
+
test_expect_success 'Test "show" of nonexistant password' '
test_must_fail "$PASS" show cred2
'