spec/rails_app/config/environments/test.rb in audited-5.0.2 vs spec/rails_app/config/environments/test.rb in audited-5.1.0

- old
+ new

@@ -42,6 +42,11 @@ # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr # Raises error for missing translations # config.action_view.raise_on_missing_translations = true + + if ::ActiveRecord::VERSION::MAJOR >= 7 + config.active_record.encryption.key_derivation_salt = SecureRandom.hex + config.active_record.encryption.primary_key = SecureRandom.hex + end end