Browse Source

feat: update tests

pull/1924/head
natdeanlewissoftwire 3 years ago
parent
commit
c94cd44e56
  1. 6
      spec/models/validations/household_validations_spec.rb

6
spec/models/validations/household_validations_spec.rb

@ -629,14 +629,14 @@ RSpec.describe Validations::HouseholdValidations do
.to include(match I18n.t("validations.household.referral.prevten_invalid", prevten: ""))
end
it "cannot be 9" do
it "can be 9" do
record.referral = 1
record.prevten = 9
household_validator.validate_previous_housing_situation(record)
expect(record.errors["prevten"])
.to include(match I18n.t("validations.household.prevten.internal_transfer", prevten: ""))
.to be_empty
expect(record.errors["referral"])
.to include(match I18n.t("validations.household.referral.prevten_invalid", prevten: ""))
.to be_empty
end
it "cannot be 4, 10, 13, 19, 23, 24, 25, 26, 28, 29" do

Loading…
Cancel
Save