From e4df646022b24765e6d4c90075472359de7501f9 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Thu, 8 Jul 2021 13:04:03 +0530 Subject: [PATCH] FIX: clear site model cache to prevent spec failure (#132) --- spec/components/custom_wizard/wizard_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/components/custom_wizard/wizard_spec.rb b/spec/components/custom_wizard/wizard_spec.rb index 9808f32f..ebb3ed7f 100644 --- a/spec/components/custom_wizard/wizard_spec.rb +++ b/spec/components/custom_wizard/wizard_spec.rb @@ -199,6 +199,7 @@ describe CustomWizard::Wizard do end it "lists the site categories" do + Site.clear_cache expect(@wizard.categories.length).to eq(1) end