From 294c35cf9b4e5f4fee5ccf55d308417b74ff83fe Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 13 May 2022 11:40:08 +0200 Subject: [PATCH] COMPATIBILITY: three custom fields were dropped in core https://github.com/discourse/discourse/commit/991b62b6f123e9df63f443bba411eee4f3c3066a --- spec/components/custom_wizard/custom_field_spec.rb | 4 ++-- .../custom_wizard/admin/custom_fields_controller_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/components/custom_wizard/custom_field_spec.rb b/spec/components/custom_wizard/custom_field_spec.rb index 155a6526..cd29f081 100644 --- a/spec/components/custom_wizard/custom_field_spec.rb +++ b/spec/components/custom_wizard/custom_field_spec.rb @@ -220,11 +220,11 @@ describe CustomWizard::CustomField do end it "lists custom field records added by other plugins " do - expect(CustomWizard::CustomField.external_list.length).to eq(11) + expect(CustomWizard::CustomField.external_list.length).to eq(8) end it "lists all custom field records" do - expect(CustomWizard::CustomField.full_list.length).to eq(15) + expect(CustomWizard::CustomField.full_list.length).to eq(12) end end diff --git a/spec/requests/custom_wizard/admin/custom_fields_controller_spec.rb b/spec/requests/custom_wizard/admin/custom_fields_controller_spec.rb index 6f1aea12..1690660f 100644 --- a/spec/requests/custom_wizard/admin/custom_fields_controller_spec.rb +++ b/spec/requests/custom_wizard/admin/custom_fields_controller_spec.rb @@ -18,7 +18,7 @@ describe CustomWizard::AdminCustomFieldsController do it "returns the full list of custom fields" do get "/admin/wizards/custom-fields.json" - expect(response.parsed_body.length).to eq(15) + expect(response.parsed_body.length).to eq(12) end it "saves custom fields" do