From 6e649347518f4d7fd9a2c2bc4f4c7b2d2dbad4b0 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Mon, 13 Feb 2023 10:15:22 +0000 Subject: [PATCH] tweak validation copy --- config/locales/en.yml | 4 ++-- spec/services/bulk_upload/lettings/row_parser_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 53b432ad9..0a4ae34de 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -171,8 +171,8 @@ en: created_by: invalid: "Please select owning organisation or managing organisation that you belong to" lettype: - general_needs_mismatch: Lettings type must be a general needs type - supported_housing_mismatch: Lettings type must be a supported housing type + general_needs_mismatch: Lettings type must be a general needs type because you selected general needs when uploading the file + supported_housing_mismatch: Lettings type must be a supported housing type because you selected supported housing when uploading the file property: mrcdate: diff --git a/spec/services/bulk_upload/lettings/row_parser_spec.rb b/spec/services/bulk_upload/lettings/row_parser_spec.rb index e48d450b4..29ce6efbb 100644 --- a/spec/services/bulk_upload/lettings/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/row_parser_spec.rb @@ -218,7 +218,7 @@ RSpec.describe BulkUpload::Lettings::RowParser do let(:attributes) { { bulk_upload:, field_1: "2" } } it "is not permitted" do - expect(parser.errors[:field_1]).to include("Lettings type must be a general needs type") + expect(parser.errors[:field_1]).to include("Lettings type must be a general needs type because you selected general needs when uploading the file") end end end @@ -230,7 +230,7 @@ RSpec.describe BulkUpload::Lettings::RowParser do let(:attributes) { { bulk_upload:, field_1: "1" } } it "is not permitted" do - expect(parser.errors[:field_1]).to include("Lettings type must be a supported housing type") + expect(parser.errors[:field_1]).to include("Lettings type must be a supported housing type because you selected supported housing when uploading the file") end end