spec/lib/xmlenc/phaos_compat_spec.rb in xmlenc-0.2.1 vs spec/lib/xmlenc/phaos_compat_spec.rb in xmlenc-0.3.0

- old
+ new

@@ -82,10 +82,10 @@ cipher.key = key cipher.iv = data_cipher[0...cipher.iv_len] result = cipher.update(data_cipher[cipher.iv_len..-1]) result << cipher.final - doc.at_xpath('//xenc:EncryptedData', Xmlenc::NAMESPACES).replace(result) + doc.at_xpath('//xenc:EncryptedData', Xmlenc::NAMESPACES).replace(Nokogiri::XML::DocumentFragment.parse(result)) expect(doc.to_xml.chomp).to be == plain_xml end end describe 'text aes 256 cbc rsa oaep sha1' do