test/test_helper.rb in iostreams-0.9.1 vs test/test_helper.rb in iostreams-0.10.0
- old
+ new
@@ -15,5 +15,14 @@
key: '1234567890ABCDEF1234567890ABCDEF',
iv: '1234567890ABCDEF',
encoding: :base64strict
)
+# Test PGP Keys
+unless IOStreams::Pgp.has_key?(email: 'sender@example.org')
+ puts 'Generating test PGP key: sender@example.org'
+ IOStreams::Pgp.generate_key(name: 'Sender', email: 'sender@example.org', passphrase: 'sender_passphrase', key_length: 2048)
+end
+unless IOStreams::Pgp.has_key?(email: 'receiver@example.org')
+ puts 'Generating test PGP key: receiver@example.org'
+ IOStreams::Pgp.generate_key(name: 'Receiver', email: 'receiver@example.org', passphrase: 'receiver_passphrase', key_length: 2048)
+end