Update encryption.feature for pw confirmation

This commit is contained in:
Michael Parks 2014-06-26 11:41:37 -06:00
parent 1272e1395d
commit 4bfe4d9ddc

View file

@ -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"