Browse Source

Remove debug lines

pull/2236/head
Rachael Booth 2 years ago
parent
commit
41e5895583
  1. 6
      spec/models/validations/household_validations_spec.rb

6
spec/models/validations/household_validations_spec.rb

@ -8,11 +8,11 @@ RSpec.describe Validations::HouseholdValidations do
let(:record) { FactoryBot.create(:lettings_log, :setup_completed, startdate: log_date) } let(:record) { FactoryBot.create(:lettings_log, :setup_completed, startdate: log_date) }
before do before do
Timecop.freeze(log_date + 1) Timecop.freeze(log_date + 1)
end end
after do after do
Timecop.return Timecop.return
end end
describe "reasonable preference validations" do describe "reasonable preference validations" do
@ -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))

Loading…
Cancel
Save