Skip to content

Commit

Permalink
Work around deprecation warning in the specs on Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Feb 13, 2024
1 parent c7ba51b commit e108f4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/rails_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e108f4d

Please sign in to comment.