Sha256: 46b8e05bc4cd9835a884577d6716eb9d61c6d2d4084547ec1e5e0483e17b0350
Contents?: true
Size: 606 Bytes
Versions: 8
Compression:
Stored size: 606 Bytes
Contents
require 'spec_helper' describe Encryption::PublicKey do describe do before(:each) do @key = Encryption::Keypair.new.public_key end it 'should generate encryption different than the original' do string = String.random @key.encrypt(string).should_not == string end end describe 'should export to' do before(:each) do @keypair = Encryption::Keypair.new @key = @keypair.public_key end it 'string' do @key.to_s.should be_an_instance_of(String) end it 'pem' do @key.to_s.should be_an_instance_of(String) end end end
Version data entries
8 entries across 8 versions & 1 rubygems