Remove DraftCommenting

This commit is contained in:
Jason Zimdars
2025-04-16 19:01:21 -05:00
parent d257cb5fb6
commit 47d0ae98a1
4 changed files with 3 additions and 75 deletions
+2 -4
View File
@@ -36,19 +36,17 @@ 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"),
draft_comment: "Something more in-depth",
description: "Something more in-depth",
tag_ids: [ tags(:mobile).id ] } }
assert_redirected_to collection_card_path(collections(:writebook), cards(:logo))
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.messages.comments.first.comment.body_plain_text.strip
assert_equal "Something more in-depth", card.description_plain_text.strip
end
test "users can only see cards in collections they have access to" do