Commit 53c26c4
Changed files (6)
lib
xml
spec
lib/xml/kit/builders/templates/certificate.builder → lib/xml/kit/templates/certificate.builder
File renamed without changes
lib/xml/kit/builders/templates/encryption.builder → lib/xml/kit/templates/encryption.builder
File renamed without changes
lib/xml/kit/builders/templates/nil_class.builder → lib/xml/kit/templates/nil_class.builder
File renamed without changes
lib/xml/kit/builders/templates/signature.builder → lib/xml/kit/templates/signature.builder
File renamed without changes
lib/xml/kit/template.rb
@@ -21,7 +21,7 @@ module Xml
root_path = File.expand_path(File.dirname(__FILE__))
template_name = "#{target.class.name.split("::").last.underscore}.builder"
- File.join(root_path, "builders/templates/", template_name)
+ File.join(root_path, "templates/", template_name)
end
def template
spec/xml/decryption_spec.rb
@@ -3,7 +3,7 @@ RSpec.describe Xml::Kit::Decryption do
let(:secret) { FFaker::Movie.title }
let(:password) { FFaker::Movie.title }
- it 'decrypts the data' do
+ it 'decrypts AES-128-CBC data' do
certificate_pem, private_key_pem = generate_key_pair(password)
public_key = OpenSSL::X509::Certificate.new(certificate_pem).public_key