diff --git a/spec/features/form/form_navigation_spec.rb b/spec/features/form/form_navigation_spec.rb index 351675804..aa0223616 100644 --- a/spec/features/form/form_navigation_spec.rb +++ b/spec/features/form/form_navigation_spec.rb @@ -2,6 +2,15 @@ require "rails_helper" require_relative "helpers" RSpec.describe "Form Navigation" do + around do |example| + Timecop.travel(Time.zone.local(2022, 1, 1)) do + Singleton.__init__(FormHandler) + example.run + end + Timecop.return + Singleton.__init__(FormHandler) + end + include Helpers let(:user) { FactoryBot.create(:user) } let(:lettings_log) do