Files
fizzy/test/models/concerns/mentions_test.rb
T
Jorge Manrubia 2545604659 Add tests
2025-04-23 17:20:04 +02:00

16 lines
432 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
end