From ebd382cca40b1da171eb0361f35f435eac02d449 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 23 Sep 2022 17:06:16 +0200 Subject: [PATCH] Fix linting --- spec/components/custom_wizard/action_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/components/custom_wizard/action_spec.rb b/spec/components/custom_wizard/action_spec.rb index d482b8ea..3c693c22 100644 --- a/spec/components/custom_wizard/action_spec.rb +++ b/spec/components/custom_wizard/action_spec.rb @@ -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,