123456789101112131415161718192021222324252627 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- require 'rails_helper'
- require 'models/form_updater/concerns/checks_core_workflow_examples'
- RSpec.describe(FormUpdater::Updater::User::Create) do
- subject(:resolved_result) do
- described_class.new(
- context: context,
- relation_fields: relation_fields,
- meta: meta,
- data: data,
- id: nil
- )
- end
- let(:user) { create(:agent) }
- let(:context) { { current_user: user } }
- let(:meta) { { initial: true, form_id: SecureRandom.uuid } }
- let(:data) { {} }
- let(:relation_fields) do
- []
- end
- include_examples 'FormUpdater::ChecksCoreWorkflow', object_name: 'User'
- end
|