Browse Source

CLDC-2370 Add missing bulk upload translation (#1636)

* feat: add missing copy

* feat: proper case

* test: fixed
pull/1648/head
natdeanlewissoftwire 2 years ago committed by GitHub
parent
commit
b5458001ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      config/locales/en.yml
  2. 12
      spec/services/bulk_upload/lettings/validator_spec.rb

9
config/locales/en.yml

@ -44,8 +44,13 @@ en:
bulk_upload/lettings/validator:
attributes:
base:
wrong_field_numbers_count: "incorrect number of fields, please ensure you have used the correct template"
over_max_column_count: "too many columns, please ensure you have used the correct template"
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the correct template"
over_max_column_count: "Too many columns, please ensure you have used the correct template"
bulk_upload/sales/validator:
attributes:
base:
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the correct template"
over_max_column_count: "Too many columns, please ensure you have used the correct template"
forms/bulk_upload_lettings/year:
attributes:
year:

12
spec/services/bulk_upload/lettings/validator_spec.rb

@ -30,7 +30,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["too many columns, please ensure you have used the correct template"])
expect(validator.errors["base"]).to eql(["Too many columns, please ensure you have used the correct template"])
end
end
@ -81,7 +81,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end
end
@ -99,7 +99,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end
end
end
@ -118,7 +118,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["too many columns, please ensure you have used the correct template"])
expect(validator.errors["base"]).to eql(["Too many columns, please ensure you have used the correct template"])
end
end
@ -169,7 +169,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end
end
@ -187,7 +187,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end
end
end

Loading…
Cancel
Save