I'm trying to delete cookies set by
cookies.encrypted['something'] = 'a thing'
in a rspec file
but
cookies.encrypted.delete
does not exist, I've checked on the docs, and cookies.delete['something']
just delete non-encrypted cookies
An encrypted cookie is just a cookie whose value is encrypted. It's still a cookie like any other, and can be deleted in the same way. Simply use
cookies.delete('something')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With