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