مرحباً،
من المدهش بالنسبة لي لأن لدينا اختبارًا صريحًا لهذا:
it "fires the trigger when post has a link" do
list =
capture_contexts do
PostCreator.create(
user,
raw: "Check out this [link](https://example.com)",
topic_id: topic.id,
)
end
expect(list.length).to eq(1)
expect(list[0]["kind"]).to eq("post_created_edited")
end
هل يمكنك تزويدي بلقطة شاشة للأتمتة بأكملها التي تحاولها، والنص الخام للمنشور الذي لم يؤدي إلى تشغيلها من فضلك؟