From 4bfe4d9ddc669bb4963bdb6d32300582b25899db Mon Sep 17 00:00:00 2001 From: Michael Parks Date: Thu, 26 Jun 2014 11:41:37 -0600 Subject: [PATCH] Update encryption.feature for pw confirmation --- features/encryption.feature | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/features/encryption.feature b/features/encryption.feature index 43d07c26..5fa8bbc1 100644 --- a/features/encryption.feature +++ b/features/encryption.feature @@ -16,6 +16,8 @@ Scenario: Encrypting a journal Given we use the config "basic.json" When we run "jrnl --encrypt" and enter "swordfish" + Then we should see the message "Confirm Password:" + When we enter "swordfish" again Then we should see the message "Journal encrypted" and the config for journal "default" should have "encrypt" set to "bool:True" When we run "jrnl -n 1" and enter "swordfish" @@ -30,7 +32,9 @@ Scenario: Storing a password in Keychain Given we use the config "multiple.json" When we run "jrnl simple --encrypt" and enter "sabertooth" - When we set the keychain password of "simple" to "sabertooth" + Then we should see the message "Confirm Password:" + When we enter "sabertooh" again + and we set the keychain password of "simple" to "sabertooth" Then the config for journal "simple" should have "encrypt" set to "bool:True" When we run "jrnl simple -n 1" Then we should not see the message "Password"