Fix tests for renamed fixtures and new stacked notifications

Clear assignee's existing notifications in setup since Notifier now
uses create_or_find_by instead of create, and reload the association
to avoid caching after destroy_all.

Update fixture references after rebase: use `logo_assignment_kevin`
as base notification and `logo_mentioned_david` for mention tests.
Update source to `logo_published` in tests that need generic card events.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Rosa Gutierrez
2026-02-20 18:38:43 +01:00
parent cefc20612a
commit 92cb749e16
8 changed files with 47 additions and 67 deletions
+1 -2
View File
@@ -4,8 +4,7 @@ module Notification::Pushable
included do
class_attribute :push_targets, default: []
after_create_commit :push_later
after_update_commit :push_later, if: :source_id_previously_changed?
after_save_commit :push_later, if: :source_id_previously_changed?
end
class_methods do