Browse Source

test: change renewal validation check to fetch error message dynamically

pull/982/head
Sam Seed 3 years ago
parent
commit
8a13fab7b2
  1. 2
      spec/models/validations/property_validations_spec.rb

2
spec/models/validations/property_validations_spec.rb

@ -241,7 +241,7 @@ RSpec.describe Validations::PropertyValidations do
record.rsnvac = 14 record.rsnvac = 14
property_validator.validate_rsnvac(record) property_validator.validate_rsnvac(record)
expect(record.errors["rsnvac"]) expect(record.errors["rsnvac"])
.to include(match I18n.t("Reason for vacancy cannot be 'Renewal of fixed-term tenancy' if letting is not a renewal")) .to include(match I18n.t("validations.property.rsnvac.not_a_renewal"))
end end
end end
end end

Loading…
Cancel
Save