1
0
Fork 0
Dieser Commit ist enthalten in:
Angus McLeod 2022-09-23 17:06:16 +02:00
Ursprung 12e5bef372
Commit ebd382cca4

Datei anzeigen

@ -300,13 +300,12 @@ describe CustomWizard::Action do
end
it 'registers callbacks' do
wizard = CustomWizard::Builder.new(@template[:id], user).build
described_class.register_callback(:before_create_topic) do |params, wizard, action, submission|
params[:topic_opts][:custom_fields]["topic_custom_field"] = true
params
end
wizard = CustomWizard::Builder.new(@template[:id], user).build
action = CustomWizard::Action.new(
wizard: wizard,
action: create_topic.with_indifferent_access,