From 2e597f5d98a3d50cff10d0e572b2d39f50b40ba2 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Mon, 3 Apr 2023 10:43:01 +0100 Subject: [PATCH] update years for bulk upload form --- spec/models/forms/bulk_upload_sales/year_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/forms/bulk_upload_sales/year_spec.rb b/spec/models/forms/bulk_upload_sales/year_spec.rb index 2276b1e4d..6509643ce 100644 --- a/spec/models/forms/bulk_upload_sales/year_spec.rb +++ b/spec/models/forms/bulk_upload_sales/year_spec.rb @@ -5,8 +5,8 @@ RSpec.describe Forms::BulkUploadSales::Year do describe "#options" do it "returns correct years" do - expect(form.options.map(&:id)).to eql([2022, 2021]) - expect(form.options.map(&:name)).to eql(%w[2022/2023 2021/2022]) + expect(form.options.map(&:id)).to eql([2023, 2022]) + expect(form.options.map(&:name)).to eql(%w[2023/2024 2022/2023]) end end end