Sha256: f9749d9734f083d45deab27a6137694ad18d3b2a4676c241f38895d98683c855
Contents?: true
Size: 568 Bytes
Versions: 15
Compression:
Stored size: 568 Bytes
Contents
require_relative '../../../lib/simple_scripting/configuration/value.rb' describe SimpleScripting::Configuration::Value do # Encrypting won't yield constant values, as the IV is random, therefore, we test the full cycle. # it 'should encrypt and decrypt a value' do plaintext = 'encrypted_value' encryption_key = 'encryption_key' encrypted_value = described_class.new(plaintext, encryption_key).encrypted decrypted_value = described_class.new(encrypted_value, encryption_key).decrypted expect(decrypted_value).to eql(plaintext) end end
Version data entries
15 entries across 15 versions & 1 rubygems