• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 19887741512

03 Dec 2025 08:45AM UTC coverage: 95.318% (-0.03%) from 95.347%
19887741512

push

github

nimmolo
Migrate ObservationChange, ConsensusChange, NameProposal, CommentAdd to deliver_later

Phase 4 of QueuedEmail migration to Rails native ActionMailer with ActiveJob.

Changes:
- ObservationChange: New change tracking system batches multiple field changes
  into single emails using @pending_changes and after_commit callback
- ConsensusChange: Refactored mailer to accept positional args directly
- NameProposal: Updated Naming model to call deliver_later
- CommentAdd: Updated Comment::Callbacks to call deliver_later

Deleted QueuedEmail subclasses (now dead code):
- QueuedEmail::ObservationChange
- QueuedEmail::ConsensusChange
- QueuedEmail::NameProposal
- QueuedEmail::CommentAdd

Test updates:
- observation_test.rb: Use assert_enqueued_with for all migrated email types
- comment_test.rb: Use enqueued_jobs.size instead of QueuedEmail.count
- queued_email_test.rb: Removed tests for migrated email types
- Fixed consensus_change fixture (umlaut handling)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

48 of 48 new or added lines in 4 files covered. (100.0%)

11 existing lines in 1 file now uncovered.

31045 of 32570 relevant lines covered (95.32%)

702.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

74.31
/app/models/queued_email.rb


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc