Add tests for new controllers

This commit is contained in:
Jorge Manrubia
2025-09-28 21:11:07 +02:00
parent 5a4cef98c9
commit 23895e53aa
18 changed files with 199 additions and 6 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class CardsControllerTest < ActionDispatch::IntegrationTest
end
test "create" do
assert_difference "Card.count", 1 do
assert_difference -> { Card.count }, 1 do
post collection_cards_path(collections(:writebook))
end
assert_redirected_to card_path(Card.last)