Fix more tests

These are mainly because the fixture's UUIDs are deterministic rather
than time-sortable, and more places where we need to correct the fixture
IDs as well.
This commit is contained in:
Kevin McConnell
2025-11-12 12:07:10 +00:00
committed by Mike Dalessio
parent c97ea9131f
commit 1959e15f7e
20 changed files with 48 additions and 41 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ class CardsControllerTest < ActionDispatch::IntegrationTest
post board_cards_path(boards(:writebook))
end
assert Card.last.drafted?
assert_redirected_to Card.last
card = Card.order(created_at: :desc).first
assert card.drafted?
assert_redirected_to card
end
test "create resumes existing draft if it exists" do