From e8cffd0717f5bb9aa77ee143278e1cdb8ff40ba9 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 24 Apr 2025 12:37:25 +0200 Subject: [PATCH] Add missing test --- test/models/concerns/mentions_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/models/concerns/mentions_test.rb b/test/models/concerns/mentions_test.rb index 3e856ab16..f7454a322 100644 --- a/test/models/concerns/mentions_test.rb +++ b/test/models/concerns/mentions_test.rb @@ -12,4 +12,11 @@ class MentionsTest < ActiveSupport::TestCase end end end + + test "mentionees are added as watchers of the card" do + perform_enqueued_jobs only: Mention::CreateJob do + card = collections(:writebook).cards.create title: "Cleanup", description: "Did you finish up with the cleanup @kevin?" + assert card.watchers.include?(users(:kevin)) + end + end end