Revert "Add a description field for cards"

This commit is contained in:
Jorge Manrubia
2025-04-21 16:41:33 +02:00
committed by GitHub
parent 4d1a1382e1
commit a4cc143b09
24 changed files with 190 additions and 131 deletions
+4 -2
View File
@@ -36,17 +36,19 @@ class CardsControllerTest < ActionDispatch::IntegrationTest
patch collection_card_path(collections(:writebook), cards(:logo)), params: {
card: {
title: "Logo needs to change",
due_on: 1.week.from_now,
image: fixture_file_upload("moon.jpg", "image/jpeg"),
description: "Something more in-depth",
draft_comment: "Something more in-depth",
tag_ids: [ tags(:mobile).id ] } }
assert_response :success
card = cards(:logo).reload
assert_equal "Logo needs to change", card.title
assert_equal 1.week.from_now.to_date, card.due_on
assert_equal "moon.jpg", card.image.filename.to_s
assert_equal [ tags(:mobile) ], card.tags
assert_equal "Something more in-depth", card.description_plain_text.strip
assert_equal "Something more in-depth", card.messages.comments.first.comment.body_plain_text.strip
end
test "users can only see cards in collections they have access to" do