Sha256: 76df18a5d3e39b66b552f8da634b5bcce19446074ae68e9fcaa3acd07f2313cd
Contents?: true
Size: 546 Bytes
Versions: 18
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' describe Xmlenc do Dir["spec/fixtures/encrypted/*.txt"].each do |document| describe "#{document}" do let(:encrypted_xml) { Base64.decode64(File.read(document)) } let(:encrypted_document) { Xmlenc::EncryptedDocument.new(encrypted_xml) } let(:private_key) { OpenSSL::PKey::RSA.new(File.read(document.gsub('.txt', '.pem'))) } it "should be validateable" do expect { @decrypted = encrypted_document.decrypt(private_key) }.not_to raise_error end end end end
Version data entries
18 entries across 18 versions & 1 rubygems