Skip to content

Commit c702be8

Browse files
committed
Fix tests with older Rails on Ruby 3.2 or newer
1 parent 4072732 commit c702be8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
end
3434
end
3535

36+
# Ensure stdlib Logger is loaded before ActiveSupport (needed for Rails < 7.1 on Ruby 3.2+)
37+
require 'logger'
3638
require 'active_record'
3739
require 'protected_attributes' if ENV['PROTECTED_ATTRIBUTES'] == 'true'
3840
require 'rails-settings'

0 commit comments

Comments
 (0)