|
|
|
@ -159,7 +159,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
|
|
|
|
|
|
|
|
|
|
it "does add an error if it's a bedsit" do |
|
|
|
|
sale_information_validator.validate_previous_property_unit_type(record) |
|
|
|
|
expect(record.errors["fromprop"]).to include(I18n.t("validations.sale_information.previous_property_type.property_type_bedsit")) |
|
|
|
|
expect(record.errors["fromprop"]).to include(I18n.t("validations.sale_information.previous_property_beds.property_type_bedsit")) |
|
|
|
|
expect(record.errors["frombeds"]).to include(I18n.t("validations.sale_information.previous_property_beds.property_type_bedsit")) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|