From c427f720b53d359db7752a8aba2e4589b72d2e24 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Mon, 20 Feb 2023 12:38:52 +0000 Subject: [PATCH] feat: wip remove instance variables so tests work --- app/models/validations/date_validations.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/models/validations/date_validations.rb b/app/models/validations/date_validations.rb index de264f07e..379ab9bb5 100644 --- a/app/models/validations/date_validations.rb +++ b/app/models/validations/date_validations.rb @@ -69,31 +69,31 @@ module Validations::DateValidations private def previous_collection_start_suffix - @previous_collection_start_suffix ||= previous_collection_start_date.strftime("%y").to_i + previous_collection_start_date.strftime("%y").to_i end def current_collection_start_suffix - @current_collection_start_suffix ||= current_collection_start_date.strftime("%y").to_i + current_collection_start_date.strftime("%y").to_i end def previous_collection_start_date - @previous_collection_start_date ||= FormHandler.instance.lettings_forms["previous_lettings"].start_date + FormHandler.instance.lettings_forms["previous_lettings"].start_date end def previous_collection_end_date - @previous_collection_end_date ||= FormHandler.instance.lettings_forms["previous_lettings"].end_date + FormHandler.instance.lettings_forms["previous_lettings"].end_date end def current_collection_start_date - @current_collection_start_date ||= FormHandler.instance.lettings_forms["current_lettings"].start_date + FormHandler.instance.lettings_forms["current_lettings"].start_date end def current_collection_end_date - @current_collection_end_date ||= FormHandler.instance.lettings_forms["current_lettings"].end_date + FormHandler.instance.lettings_forms["current_lettings"].end_date end def next_collection_start_date - @next_collection_start_date ||= FormHandler.instance.lettings_forms["next_lettings"].start_date + FormHandler.instance.lettings_forms["next_lettings"].start_date end def is_rsnvac_first_let?(record)