Skip to content

Commit

Permalink
Add workaround for Rails 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Aug 18, 2024
1 parent 89d2b9b commit 55f9318
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/activesupport7/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
Thread.abort_on_exception = true

# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true
if ActiveSupport::Deprecation.respond_to?(:debug)
# Rails 7.2 does not have ActiveSupport::Deprecation.debug
ActiveSupport::Deprecation.debug = true
end

# Default to old to_time behavior but allow running tests with new behavior
ActiveSupport.to_time_preserves_timezone = ENV["PRESERVE_TIMEZONES"] == "1"
Expand Down

0 comments on commit 55f9318

Please sign in to comment.