Skip to content

Commit

Permalink
Fix Rails 8 deprecation warning when running specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Nov 8, 2024
1 parent 4b012b9 commit 76ef929
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 @@ -38,6 +38,9 @@ class FormeRails < Rails::Application
if Rails.respond_to?(:version) && Rails.version >= '7.1' && Rails.version < '7.2'
config.active_support.cache_format_version = 7.1
end
if Rails.respond_to?(:version) && Rails.version >= '8'
config.active_support.to_time_preserves_timezone = :zone
end
begin
initialize!
rescue NoMethodError
Expand Down

0 comments on commit 76ef929

Please sign in to comment.