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
@@ -10,6 +10,11 @@ class CollectionsControllerTest < ActionDispatch::IntegrationTest
assert_response :success
end
test "show" do
get collection_path(collections(:writebook))
assert_response :success
end
test "create" do
assert_difference -> { Collection.count }, +1 do
post collections_path, params: { collection: { name: "Remodel Punch List" } }