Remove DraftCommenting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user