Sha256: 18e5f169b35c652f819d20bbaa7e569ffb488a49f6f7694fc3ad8f22a31451ce
Contents?: true
Size: 580 Bytes
Versions: 8
Compression:
Stored size: 580 Bytes
Contents
require 'spec_helper' require 'openssl' describe Encryption::Keypair do it 'should generate keypairs with generate static method' do public_key, private_key = Encryption::Keypair.generate public_key.should be_an_instance_of(Encryption::PublicKey) private_key.should be_an_instance_of(Encryption::PrivateKey) end it 'should generate keypairs with keypair instance' do keypair = Encryption::Keypair.new keypair.public_key.should be_an_instance_of(Encryption::PublicKey) keypair.private_key.should be_an_instance_of(Encryption::PrivateKey) end end
Version data entries
8 entries across 8 versions & 1 rubygems