|
|
|
@ -282,8 +282,6 @@ RSpec.describe Validations::HouseholdValidations do |
|
|
|
|
|
|
|
|
|
|
|
it "validates that the number of household members cannot be more than 8" do |
|
|
|
it "validates that the number of household members cannot be more than 8" do |
|
|
|
record.hhmemb = 9 |
|
|
|
record.hhmemb = 9 |
|
|
|
s = record.non_location_setup_questions_completed? |
|
|
|
|
|
|
|
d = record.declaration |
|
|
|
|
|
|
|
household_validator.validate_numeric_min_max(record) |
|
|
|
household_validator.validate_numeric_min_max(record) |
|
|
|
expect(record.errors["hhmemb"]) |
|
|
|
expect(record.errors["hhmemb"]) |
|
|
|
.to include(match I18n.t("validations.numeric.within_range", field: "Number of household members", min: 1, max: 8)) |
|
|
|
.to include(match I18n.t("validations.numeric.within_range", field: "Number of household members", min: 1, max: 8)) |
|
|
|
|