general_needs_mismatch:Lettings type must be a general needs type because you selected general needs when uploading the file
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
supported_housing_mismatch:Lettings type must be a supported housing type because you selected supported housing when uploading the file
needstype_general_needs:This needs type is general needs, but the letting type is supported housing. Change either the needs type or the letting type.
needstype_supported_housing:This needs type is supported housing, but the letting type is general needs. Change either the needs type or the letting type.
needstype:
lettype_not_general_needs:This letting type is supported housing, but the needs type is general needs. Change either the needs type or the letting type.
lettype_not_supported_housing:This letting type is general needs, but the needs type is supported housing. Change either the needs type or the letting type.
location:
location:
incomplete:"This location is incomplete. Select another location or update this one"
incomplete:"This location is incomplete. Select another location or update this one"
expect(parser.errors[:field_5]).toinclude("Lettings type must be a general needs type because you selected general needs when uploading the file")
expect(parser.errors[:field_4]).toinclude("This letting type is supported housing, but the needs type is general needs. Change either the needs type or the letting type.")
expect(parser.errors[:field_5]).toinclude("This needs type is general needs, but the letting type is supported housing. Change either the needs type or the letting type.")
end
end
end
end
end
end
@ -836,7 +838,8 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do
expect(parser.errors[:field_5]).toinclude("Lettings type must be a supported housing type because you selected supported housing when uploading the file")
expect(parser.errors[:field_4]).toinclude("This letting type is general needs, but the needs type is supported housing. Change either the needs type or the letting type.")
expect(parser.errors[:field_5]).toinclude("This needs type is supported housing, but the letting type is general needs. Change either the needs type or the letting type.")
end
end
end
end
@ -844,6 +847,7 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do