This commit is contained in:
Michael Parks 2017-04-16 01:10:15 +00:00 committed by GitHub
commit fbfda8d6dd
3 changed files with 21 additions and 3 deletions

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