From 8a2a143ea87a15c8b8fe380ec99fad3671797b25 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 4 Dec 2020 09:45:28 +1100 Subject: [PATCH] Invalidate cache before checking enabled? --- spec/components/custom_wizard/custom_field_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/components/custom_wizard/custom_field_spec.rb b/spec/components/custom_wizard/custom_field_spec.rb index cb03bd2a..eadb37b0 100644 --- a/spec/components/custom_wizard/custom_field_spec.rb +++ b/spec/components/custom_wizard/custom_field_spec.rb @@ -184,6 +184,7 @@ describe CustomWizard::CustomField do end it "is not enabled if there are no custom fields" do + CustomWizard::CustomField.invalidate_cache expect(CustomWizard::CustomField.enabled?).to eq(false) end end \ No newline at end of file