From e108f4da5ad099d05cb393725ac1be9a5fcaf6a3 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 13 Feb 2024 07:47:46 -0800 Subject: [PATCH] Work around deprecation warning in the specs on Rails 7.1 --- spec/rails_integration_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/rails_integration_spec.rb b/spec/rails_integration_spec.rb index ce7a537..478645d 100644 --- a/spec/rails_integration_spec.rb +++ b/spec/rails_integration_spec.rb @@ -35,6 +35,9 @@ class FormeRails < Rails::Application config.secret_key_base = 'foo'*15 config.secret_token = 'secret token'*15 if Rails.respond_to?(:version) && Rails.version < '5.2' config.eager_load = true + if Rails.respond_to?(:version) && Rails.version >= '7.1' && Rails.version < '7.2' + config.active_support.cache_format_version = 7.1 + end begin initialize! rescue NoMethodError