Browse Source

lint: use update! not update

pull/1188/head
Sam Seed 3 years ago
parent
commit
3cc69e9f8f
  1. 2
      spec/models/validations/sales/property_validations_spec.rb

2
spec/models/validations/sales/property_validations_spec.rb

@ -69,7 +69,7 @@ RSpec.describe Validations::Sales::PropertyValidations do
end end
it "does not add an error if proptype is undefined" do it "does not add an error if proptype is undefined" do
record.update(proptype: nil) record.update!(proptype: nil)
property_validator.validate_bedsit_number_of_beds(record) property_validator.validate_bedsit_number_of_beds(record)
expect(record.errors).not_to be_present expect(record.errors).not_to be_present
end end

Loading…
Cancel
Save