Skip to content

Add helper methods to ExceptionReporter#34

Merged
saturnflyer merged 1 commit intomainfrom
reporter-helpers
Feb 10, 2026
Merged

Add helper methods to ExceptionReporter#34
saturnflyer merged 1 commit intomainfrom
reporter-helpers

Conversation

@saturnflyer
Copy link
Member

Summary

  • Extract formatted_exception_count and exception_summary from the rake task into ExceptionReporter so the logic is testable and reusable
  • Fix test_exceptions rake task which was calling report (returns block-kit sections array) instead of banner_data (returns hash with :exceptions key), causing a TypeError
  • Add specs for both new methods

Test plan

  • bundle exec rspec spec/newshound/exception_reporter_spec.rb — 14 examples, 0 failures

@saturnflyer saturnflyer requested a review from a team as a code owner February 10, 2026 18:38
@saturnflyer saturnflyer marked this pull request as draft February 10, 2026 18:51
Extract formatted_exception_count and exception_summary from
the rake task into ExceptionReporter so the logic is testable
and reusable. Update the rake task to use the new methods.

Added: ExceptionReporter#formatted_exception_count and #exception_summary helpers
Fixed: test_exceptions rake task calling report instead of banner_data
@saturnflyer saturnflyer marked this pull request as ready for review February 10, 2026 19:17
@saturnflyer saturnflyer merged commit 6cd2f4a into main Feb 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant