Files
fizzy/test/controllers/collections/workflows_controller_test.rb
T
2025-04-13 08:17:36 +02:00

17 lines
460 B
Ruby

require "test_helper"
class Collections::WorkflowsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "update" do
collection = collections(:writebook)
patch collection_workflow_path(collection), params: { collection: { workflow_id: workflows(:on_call).id } }
assert_redirected_to cards_path(collection_ids: [ collection.id ])
assert_equal workflows(:on_call), collection.reload.workflow
end
end