Files
fizzy/test/controllers/collections/workflows_controller_test.rb
T
Mike Dalessio 0799ad050b Collection workflow edits render a turbo frame
so we don't disturb the rest of the edit page.
2025-07-02 22:24:49 -04:00

17 lines
470 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_turbo_stream action: :replace, target: dom_id(collection, :workflows)
assert_equal workflows(:on_call), collection.reload.workflow
end
end