Add postponed and closed flags to Pinned and Notification cards

This commit is contained in:
Jirka Hutárek
2026-02-13 00:45:47 +01:00
parent abcbb74ac8
commit c4c46cce44
4 changed files with 8 additions and 0 deletions
@@ -171,6 +171,7 @@ class CardsControllerTest < ActionDispatch::IntegrationTest
assert_equal card.title, @response.parsed_body["title"]
assert_equal card.closed?, @response.parsed_body["closed"]
assert_equal card.postponed?, @response.parsed_body["postponed"]
assert_equal 2, @response.parsed_body["steps"].size
assert_equal card_comments_url(card), @response.parsed_body["comments_url"]
assert_equal card_reactions_url(card), @response.parsed_body["reactions_url"]
@@ -26,5 +26,9 @@ class NotificationsControllerTest < ActionDispatch::IntegrationTest
assert_not_nil notification.dig("card", "number")
assert_not_nil notification.dig("card", "board_name")
assert_not_nil notification.dig("card", "column")
card = notifications(:logo_assignment_kevin).card
assert_equal card.closed?, notification.dig("card", "closed")
assert_equal card.postponed?, notification.dig("card", "postponed")
end
end