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

Version Path
encryption-1.1.8 spec/encryption/asymmetric/keypair_spec.rb
encryption-1.1.7 spec/encryption/asymmetric/keypair_spec.rb
encryption-1.1.6 spec/encryption/asymmetric/keypair_spec.rb
encryption-1.1.5 spec/encryption/asymmetric/keypair_spec.rb
encryption-1.1.4 spec/encryption/asymmetric/keypair_spec.rb
encryption-1.1.3 spec/encryption/asymmetric/keypair_spec.rb
encryption-1.1.2 spec/encryption/asymmetric/keypair_spec.rb
encryption-1.1.0 spec/encryption/asymmetric/keypair_spec.rb