Fix tests

This commit is contained in:
Jorge Manrubia
2025-09-29 13:13:40 +02:00
parent 859a016a2e
commit 1bb8de8564
14 changed files with 552 additions and 165 deletions
@@ -1,13 +0,0 @@
require "test_helper"
class Collection::WorkflowingTest < ActiveSupport::TestCase
test "change all card stages when changing workflow" do
collections(:writebook).update! workflow: workflows(:on_call)
assert_equal [ collections(:writebook).initial_workflow_stage ], collections(:writebook).cards.reload.collect(&:stage).uniq
end
test "remove stage from cards if workflow is removed" do
collections(:writebook).update! workflow: nil
assert_equal [], collections(:writebook).cards.reload.collect(&:stage).compact
end
end