Test that system comments won't result in notifications

This commit is contained in:
Jorge Manrubia
2025-04-30 12:27:32 +02:00
parent adfd16bf5b
commit 4f5e8bfc07
@@ -57,6 +57,14 @@ class Card::Eventable::SystemCommenterTest < ActiveSupport::TestCase
end
end
test "don't notify on system comments" do
@card.watch_by(users(:david))
assert_no_difference -> { Notification.count } do
@card.toggle_assignment users(:kevin)
end
end
private
def assert_system_comment(expected_comment)
assert_difference -> { @card.comments.count }, 1 do