From f13b017b83834bd37a6ca84e87cfd16c462e2809 Mon Sep 17 00:00:00 2001 From: angusmcleod Date: Tue, 5 Oct 2021 10:38:41 +0800 Subject: [PATCH] COMPATIBILITY: backwards compatibility for wizard spec --- spec/components/custom_wizard/wizard_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/custom_wizard/wizard_spec.rb b/spec/components/custom_wizard/wizard_spec.rb index 67905f5a..21c9b275 100644 --- a/spec/components/custom_wizard/wizard_spec.rb +++ b/spec/components/custom_wizard/wizard_spec.rb @@ -199,7 +199,7 @@ describe CustomWizard::Wizard do end it "lists the site categories" do - Site.clear_cache + Site.clear_cache if Site.respond_to?(:clear_cache) expect(@wizard.categories.length).to eq(1) end