Browse Source

refactor: linting

pull/1178/head
natdeanlewissoftwire 3 years ago
parent
commit
11a30c3d87
  1. 1
      app/models/validations/shared_validations.rb
  2. 3
      spec/models/validations/sales/household_validations_spec.rb

1
app/models/validations/shared_validations.rb

@ -89,7 +89,6 @@ module Validations::SharedValidations
end end
end end
private private
def person_is_partner?(relationship) def person_is_partner?(relationship)

3
spec/models/validations/sales/household_validations_spec.rb

@ -17,7 +17,6 @@ RSpec.describe Validations::Sales::HouseholdValidations do
end end
context "when blank" do context "when blank" do
it "does not add an error" do it "does not add an error" do
record.hholdcount = nil record.hholdcount = nil
household_validator.validate_number_of_other_people_living_in_the_property(record) household_validator.validate_number_of_other_people_living_in_the_property(record)
@ -27,7 +26,6 @@ RSpec.describe Validations::Sales::HouseholdValidations do
end end
context "when below lower bound" do context "when below lower bound" do
it "adds an error" do it "adds an error" do
record.hholdcount = -1 record.hholdcount = -1
household_validator.validate_number_of_other_people_living_in_the_property(record) household_validator.validate_number_of_other_people_living_in_the_property(record)
@ -37,7 +35,6 @@ RSpec.describe Validations::Sales::HouseholdValidations do
end end
context "when higher than upper bound" do context "when higher than upper bound" do
it "adds an error" do it "adds an error" do
record.hholdcount = 5 record.hholdcount = 5
household_validator.validate_number_of_other_people_living_in_the_property(record) household_validator.validate_number_of_other_people_living_in_the_property(record)

Loading…
Cancel
Save