0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-29 12:20:27 +01:00

Invalidate cache before checking enabled?

Dieser Commit ist enthalten in:
Angus McLeod 2020-12-04 09:45:28 +11:00
Ursprung 61dfa9b2aa
Commit 8a2a143ea8

Datei anzeigen

@ -184,6 +184,7 @@ describe CustomWizard::CustomField do
end end
it "is not enabled if there are no custom fields" do it "is not enabled if there are no custom fields" do
CustomWizard::CustomField.invalidate_cache
expect(CustomWizard::CustomField.enabled?).to eq(false) expect(CustomWizard::CustomField.enabled?).to eq(false)
end end
end end