From 07350c76f6869dec20e47a6af5db268e2fef2d94 Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Thu, 15 Sep 2022 16:18:54 +0100 Subject: [PATCH] Fix intermiten test (#876) --- spec/models/form_handler_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/form_handler_spec.rb b/spec/models/form_handler_spec.rb index 94e92e01a..4a5908773 100644 --- a/spec/models/form_handler_spec.rb +++ b/spec/models/form_handler_spec.rb @@ -3,15 +3,15 @@ require "rails_helper" RSpec.describe FormHandler do let(:form_handler) { described_class.instance } - before { Singleton.__init__(described_class) } # reload FormHandler Instance to update form definitions between runs - context "when accessing a form in a different year" do before do Timecop.freeze(Time.utc(2021, 8, 3)) + Singleton.__init__(described_class) end after do Timecop.unfreeze + Singleton.__init__(described_class) # reload FormHandler Instance to update form definitions between runs end it "is able to load a current lettings form" do