Commit 669cb2b

mokha <mo@mokhan.ca>
2019-01-21 23:28:31
ensure encrypted key matches xmlenc xsd
1 parent f85e1f1
Changed files (1)
spec/xml/kit/encrypted_key_spec.rb
@@ -19,5 +19,6 @@ RSpec.describe ::Xml::Kit::EncryptedKey do
     specify { expect(result['EncryptedKey']['EncryptionMethod']['Algorithm']).to be_present }
     specify { expect(result['EncryptedKey']['CipherData']['CipherValue']).to be_present }
     specify { expect(private_key.private_decrypt(Base64.decode64(result['EncryptedKey']['CipherData']['CipherValue']))).to eql(symmetric_key) }
+    specify { expect(subject.to_xml).to match_xsd('xenc-schema') }
   end
 end