Files
fizzy/test/models/concerns/mentions_test.rb
T
Jorge Manrubia d2237c2a68 Remove trace
2025-04-23 23:19:38 +02:00

23 lines
603 B
Ruby

require "test_helper"
class MentionsTest < ActiveSupport::TestCase
setup do
Current.session = sessions(:david)
end
test "create mentions when creating messages" do
assert_difference -> { Mention.count }, +1 do
perform_enqueued_jobs only: Mention::CreateJob do
collections(:writebook).cards.create title: "Cleanup", description: "Did you finish up with the cleanup, @david?"
end
end
end
test "jorge" do
card = Card.find(cards(:logo).id)
card.update(description: "jorge")
card = Card.find(cards(:logo).id)
card.update(title: "jorge")
end
end