Skip to content

Commit 2938ae9

Browse files
committed
Fix logging test
that started failing with rails/rails@308594b5
1 parent b6f65be commit 2938ae9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test_helper.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ def with_active_storage(&block)
183183
Rails.application.config.active_record_tenanted.tenant_resolver = @old_tenant_resolver
184184
end
185185

186+
def run(...)
187+
if defined?(with_debug_event_reporting)
188+
with_debug_event_reporting do
189+
super
190+
end
191+
else
192+
super
193+
end
194+
end
195+
186196
def all_configs
187197
ActiveRecord::Base.configurations.configs_for(include_hidden: true)
188198
end

0 commit comments

Comments
 (0)