From 7039912b545fc7429356d1ac50604d12457c26be Mon Sep 17 00:00:00 2001 From: Hugo Melo Date: Wed, 12 Feb 2025 12:28:12 -0500 Subject: [PATCH] Fix failing spec Co-authored-by: Hugo Melo --- app/models/az322_contribution.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/az322_contribution.rb b/app/models/az322_contribution.rb index 98412c313d..0338a07933 100644 --- a/app/models/az322_contribution.rb +++ b/app/models/az322_contribution.rb @@ -25,12 +25,11 @@ class Az322Contribution < ApplicationRecord accepts_nested_attributes_for :state_file_az_intake, update_only: true validates :school_name, presence: true - validates :ctds_code, presence: true, format: { with: /\A\d{9}\z/, message: -> (_object, _data) { I18n.t("validators.ctds_code") }} + validates :ctds_code, presence: true, format: { with: /\A\d{9}\z/, message: ->(_object, _data) { I18n.t("validators.ctds_code") }} validates :district_name, presence: true validates :amount, presence: true, numericality: { greater_than: 0 } validates :date_of_contribution, inclusion: { in: TAX_YEAR.beginning_of_year..TAX_YEAR.end_of_year - }, - presence: true + } end