Browse Source

remove 2025 test until 2025 functionality is actually merged

pull/2954/head
Carolyn 2 months ago
parent
commit
684a5ee8d8
  1. 16
      spec/services/bulk_upload/sales/validator_spec.rb

16
spec/services/bulk_upload/sales/validator_spec.rb

@ -58,22 +58,6 @@ RSpec.describe BulkUpload::Sales::Validator do
end end
end end
context "when trying to upload 2024 logs for 2025 bulk upload" do
let(:bulk_upload) { create(:bulk_upload, user:, year: 2025) }
let(:log) { build(:sales_log, :completed, saledate: Time.zone.local(2024, 10, 10), assigned_to: user) }
before do
file.write(log_to_csv.default_field_numbers_row_for_year(2025))
file.write(log_to_csv.to_year_csv_row(2025))
file.rewind
end
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql([I18n.t("validations.sales.2025.bulk_upload.wrong_template.wrong_template")])
end
end
[ [
{ line_ending: "\n", name: "unix" }, { line_ending: "\n", name: "unix" },
{ line_ending: "\r\n", name: "windows" }, { line_ending: "\r\n", name: "windows" },

Loading…
Cancel
Save