Solve problem when Action Text raises on missing attachables

Reverts the previous patch. The problem was that I hadn't update
 Lexxy in the saas version https://github.com/basecamp/lexxy/pull/596
This commit is contained in:
Jorge Manrubia
2026-01-16 17:17:50 +01:00
parent 7c0ef09beb
commit 4ab1e3ff7d
3 changed files with 11 additions and 2 deletions
+10
View File
@@ -52,6 +52,16 @@ class CardsControllerTest < ActionDispatch::IntegrationTest
assert_response :success
end
test "edit card with invalid attachments in description" do
card = cards(:logo)
card.update! description: <<~HTML
<action-text-attachment sgid="gid://fizzy/Card/nonexistent" content-type="application/octet-stream"></action-text-attachment>
HTML
get edit_card_path(card)
assert_response :success
end
test "update" do
patch card_path(cards(:logo)), as: :turbo_stream, params: {
card: {