spec/support/encryptors.rb in crypt_keeper-0.8.0 vs spec/support/encryptors.rb in crypt_keeper-0.9.0.pre
- old
+ new
@@ -20,10 +20,10 @@
def encrypt(data)
@passphrase + data.reverse
end
def decrypt(data)
- data.sub(/^#{@passphrase}/, '').reverse
+ data.to_s.sub(/^#{@passphrase}/, '').reverse
end
end
end
end