Sha256: 78f705376d2ddcfa3be58403dc590d83779591479c793143a20863f722875316
Contents?: true
Size: 609 Bytes
Versions: 8
Compression:
Stored size: 609 Bytes
Contents
require 'spec_helper' describe Encryption::PrivateKey do describe do before(:each) do @key = Encryption::Keypair.new.private_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.private_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