You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(test_helper): use public Hub#clients instead of @stack ivar (#2951)
Address code review feedback on the #2951 fix:
- Add a documented public Sentry::Hub#clients accessor returning all
clients across the scope stack, and use it from
TestHelper#sentry_test_transports instead of reaching into Hub's
private @stack ivar. This keeps the test helper resilient to future
Hub internals refactors. Covered by new hub_spec.rb examples.
- Replace the final inline teardown_sentry_test in the #2951 regression
and Rack consecutive-requests describe blocks with an unconditional
'after { teardown_sentry_test }' hook, matching the sibling describe
style so cleanup runs even if an expectation fails mid-example. The
intentional mid-scenario teardowns remain inline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments