0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 02:30:28 +01:00
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,