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