#rspec
Encrypted Attributes & RSpec
Rails 7 introduced support for application-level encryption, and here I’ll show how to write an RSpec test to ensure an attribute is encrypted, as well as explore some parts of ActiveRecord’s encryption API.
Rails 7 introduced support for application-level encryption, and here I’ll show how to write an RSpec test to ensure an attribute is encrypted, as well as explore some parts of ActiveRecord’s encryption API.