Skip to content

Commit 68d4ebb

Browse files
flavorjonesrosa
authored andcommitted
Fix testing against Rails main
Default logging levels changed in rails/rails@308594b5
1 parent 5c6d4b0 commit 68d4ebb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_helper.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ class ActiveSupport::TestCase
5353
end
5454
end
5555

56+
def run(...)
57+
# Rails 8.1.dev changed default logging levels
58+
if defined?(with_debug_event_reporting)
59+
with_debug_event_reporting do
60+
super
61+
end
62+
else
63+
super
64+
end
65+
end
66+
5667
private
5768
def wait_while_with_timeout(timeout, &block)
5869
wait_while_with_timeout!(timeout, &block)

0 commit comments

Comments
 (0)