|
|
|
@ -335,11 +335,11 @@ RSpec.describe Validations::HouseholdValidations do |
|
|
|
record.ecstat2 = 1 |
|
|
|
record.ecstat2 = 1 |
|
|
|
household_validator.validate_household_number_of_other_members(record) |
|
|
|
household_validator.validate_household_number_of_other_members(record) |
|
|
|
expect(record.errors["ecstat2"]) |
|
|
|
expect(record.errors["ecstat2"]) |
|
|
|
.to include(match I18n.t("validations.household.ecstat.not_student_16_19", person_num: 2)) |
|
|
|
.to include(match I18n.t("validations.household.ecstat.student_16_19.must_be_student", person_num: 2)) |
|
|
|
expect(record.errors["age2"]) |
|
|
|
expect(record.errors["age2"]) |
|
|
|
.to include(match I18n.t("validations.household.age.not_student_16_19", person_num: 2)) |
|
|
|
.to include(match I18n.t("validations.household.age.student_16_19.cannot_be_16_19.child_not_student", person_num: 2)) |
|
|
|
expect(record.errors["relat2"]) |
|
|
|
expect(record.errors["relat2"]) |
|
|
|
.to include(match I18n.t("validations.household.relat.not_student_16_19", person_num: 2)) |
|
|
|
.to include(match I18n.t("validations.household.relat.student_16_19.cannot_be_child.16_19_not_student", person_num: 2)) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "expects that person can be a full time student" do |
|
|
|
it "expects that person can be a full time student" do |
|
|
|
|