Browse Source

lint

CLDC-858-validate-beds
Ted-U 2 years ago
parent
commit
4d555aa637
  1. 2
      app/models/validations/sales_validations.rb
  2. 2
      spec/models/validations/sales_validations_spec.rb

2
app/models/validations/sales_validations.rb

@ -8,4 +8,4 @@ module Validations::SalesValidations
record.errors.add :beds, "Number of bedrooms must be between 1 and 9"
end
end
end
end

2
spec/models/validations/sales_validations_spec.rb

@ -24,4 +24,4 @@ RSpec.describe Validations::SalesValidations do
expect(record.errors).eql?(expected_error)
end
end
end
end

Loading…
Cancel
Save