0799ad050b
so we don't disturb the rest of the edit page.
17 lines
470 B
Ruby
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
|