Sha256: af40c17747ccc3ffc43abc06253058979c92b83af7f1a23cfa3076af168b6ba6

Contents?: true

Size: 1002 Bytes

Versions: 5

Compression:

Stored size: 1002 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'

require 'yaml'
require 'minitest/autorun'
require 'minitest/reporters'
require 'iostreams'
require 'awesome_print'
require 'symmetric-encryption'

Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new

# Test cipher
SymmetricEncryption.cipher = SymmetricEncryption::Cipher.new(
  cipher_name: 'aes-128-cbc',
  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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iostreams-0.12.1 test/test_helper.rb
iostreams-0.12.0 test/test_helper.rb
iostreams-0.11.0 test/test_helper.rb
iostreams-0.10.1 test/test_helper.rb
iostreams-0.10.0 test/test_helper.rb