Add a test for blackbox_cat
This commit is contained in:
committed by
Tom Limoncelli
parent
cf3915fbd8
commit
6761bfc356
@@ -161,6 +161,11 @@ assert_file_missing secret.txt
|
|||||||
assert_file_exists secret.txt.gpg
|
assert_file_exists secret.txt.gpg
|
||||||
assert_line_exists '/secret.txt' .gitignore
|
assert_line_exists '/secret.txt' .gitignore
|
||||||
|
|
||||||
|
PHASE 'She cats secrets.txt.gpg'
|
||||||
|
make_self_deleting_tempfile catsecret
|
||||||
|
blackbox_cat secret.txt.gpg > $catsecret
|
||||||
|
assert_line_exists 'this is my secret' $catsecret
|
||||||
|
|
||||||
PHASE 'She decrypts secrets.txt.'
|
PHASE 'She decrypts secrets.txt.'
|
||||||
blackbox_edit_start secret.txt
|
blackbox_edit_start secret.txt
|
||||||
assert_file_exists secret.txt
|
assert_file_exists secret.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user