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:
committed by
Mike Dalessio
parent
c97ea9131f
commit
1959e15f7e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user