From 9577c363eb2560fb66879a720c0b9fe364da5c66 Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Thu, 5 Feb 2026 15:28:34 +0000 Subject: [PATCH] CLDC-4141: avoid sales changes in this PR, will leave to CLDC-4177 --- spec/services/bulk_upload/sales/validator_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/bulk_upload/sales/validator_spec.rb b/spec/services/bulk_upload/sales/validator_spec.rb index a37eff505..b665b2b5c 100644 --- a/spec/services/bulk_upload/sales/validator_spec.rb +++ b/spec/services/bulk_upload/sales/validator_spec.rb @@ -11,7 +11,7 @@ RSpec.describe BulkUpload::Sales::Validator do let(:organisation) { create(:organisation, old_visible_id: "123") } let(:log) { build(:sales_log, :completed, assigned_to: user) } let(:log_to_csv) { BulkUpload::SalesLogToCsv.new(log:) } - let(:bulk_upload) { create(:bulk_upload, :sales, user:, year:) } + let(:bulk_upload) { create(:bulk_upload, user:, year: log.collection_start_year) } let(:path) { file.path } let(:file) { Tempfile.new }