diff --git a/config/locales/en.yml b/config/locales/en.yml index 377e2e449..5cd4dc087 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -202,9 +202,9 @@ en: beds: non_positive: "Number of bedrooms has to be greater than 0" over_max: "Number of bedrooms cannot be more than 12" - bedsits_have_max_one_bedroom: "Bedsits have at most one bedroom" + bedsits_have_max_one_bedroom: "Bedsit bedroom maximum 1" proptype: - bedsits_have_max_one_bedroom: "Properties with 2 or more bedrooms cannot be bedsits" + bedsits_have_max_one_bedroom: "Bedsit maximum 1 bedroom" postcode: must_match_previous: "Buyer's last accommodation and discounted ownership postcodes must match" diff --git a/spec/models/validations/sales/property_validations_spec.rb b/spec/models/validations/sales/property_validations_spec.rb index 6b998129c..f2b25c16a 100644 --- a/spec/models/validations/sales/property_validations_spec.rb +++ b/spec/models/validations/sales/property_validations_spec.rb @@ -65,8 +65,8 @@ RSpec.describe Validations::Sales::PropertyValidations do it "does add an error if it's a bedsit" do property_validator.validate_bedsit_number_of_beds(record) - expect(record.errors.added? :proptype, "Properties with 2 or more bedrooms cannot be bedsits").to be true - expect(record.errors.added? :beds, "Bedsits have at most one bedroom").to be true + expect(record.errors.added? :proptype, "Bedsit maximum 1 bedroom").to be true + expect(record.errors.added? :beds, "Bedsit bedroom maximum 1").to be true end end end