From 3dae3df2163d0785ccbef619fbf8a88c207564e2 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Fri, 23 Jan 2026 14:02:27 +0000 Subject: [PATCH] CLDC-4115: Ensure form is loaded correctly before testing locations --- spec/helpers/locations_helper_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/helpers/locations_helper_spec.rb b/spec/helpers/locations_helper_spec.rb index 48374661c..d8452bdff 100644 --- a/spec/helpers/locations_helper_spec.rb +++ b/spec/helpers/locations_helper_spec.rb @@ -59,6 +59,7 @@ RSpec.describe LocationsHelper do before do allow(Time).to receive(:now).and_return(today) allow(FormHandler.instance).to receive(:lettings_in_crossover_period?).and_return(true) + Singleton.__init__(FormHandler) end it "returns one active period without to date" do