Commit 39da2ff

mokha <mo@mokhan.ca>
2019-01-29 00:18:52
pack bytes instead of using string interpolation tag: v0.3.0
1 parent 51c0493
Changed files (1)
spec
spec/xml/kit/crypto/symmetric_cipher_spec.rb
@@ -28,7 +28,7 @@ RSpec.describe ::Xml::Kit::Crypto::SymmetricCipher do
         let(:encrypted_file) { Tempfile.new(algorithm).path }
         let(:original_file) { Tempfile.new("#{algorithm}-original").path }
         let(:secret) { SecureRandom.hex }
-        let(:data) { "#{iv}#{secret}".strip }
+        let(:data) { (iv.bytes + secret.bytes).pack('c*') }
 
         context 'when encoded as ASCII' do
           before do