Browse Source

tweak validation copy

pull/1288/head
Phil Lee 3 years ago
parent
commit
6e64934751
  1. 4
      config/locales/en.yml
  2. 4
      spec/services/bulk_upload/lettings/row_parser_spec.rb

4
config/locales/en.yml

@ -171,8 +171,8 @@ en:
created_by: created_by:
invalid: "Please select owning organisation or managing organisation that you belong to" invalid: "Please select owning organisation or managing organisation that you belong to"
lettype: lettype:
general_needs_mismatch: Lettings type must be a general needs 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 supported_housing_mismatch: Lettings type must be a supported housing type because you selected supported housing when uploading the file
property: property:
mrcdate: mrcdate:

4
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" } } let(:attributes) { { bulk_upload:, field_1: "2" } }
it "is not permitted" do 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 end
end end
@ -230,7 +230,7 @@ RSpec.describe BulkUpload::Lettings::RowParser do
let(:attributes) { { bulk_upload:, field_1: "1" } } let(:attributes) { { bulk_upload:, field_1: "1" } }
it "is not permitted" do 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
end end

Loading…
Cancel
Save