Fix tests

This commit is contained in:
Jorge Manrubia
2025-09-28 20:31:41 +02:00
parent e14262dc01
commit 0b0fb57e58
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -12,7 +12,5 @@ class Account < ApplicationRecord
Closure::Reason.create_defaults
Collection.create!(name: "Cards", creator: user, all_access: true)
workflow = Workflow.create!(name: "Basic")
Collection.first.update!(workflow: workflow)
end
end
@@ -16,7 +16,7 @@ class CollectionsControllerTest < ActionDispatch::IntegrationTest
end
collection = Collection.last
assert_redirected_to cards_path(collection_ids: [ collection ])
assert_redirected_to collection_path(collection)
assert_includes collection.users, users(:kevin)
assert_equal "Remodel Punch List", collection.name
end