Commit 53c26c4

mo <mo.khan@gmail.com>
2017-12-30 17:43:45
promote template dir.
1 parent 2590fe1
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