Browse Source

Fix lint

CLDC-4159-address-uprn-for-supported-housing
oscar-richardson-softwire 6 days ago
parent
commit
e1c415bd48
  1. 10
      spec/models/lettings_log_derived_fields_spec.rb

10
spec/models/lettings_log_derived_fields_spec.rb

@ -1491,12 +1491,12 @@ RSpec.describe LettingsLog, type: :model do
.and not_change { log.read_attribute(:address_line2) } .and not_change { log.read_attribute(:address_line2) }
.and not_change { log.read_attribute(:town_or_city) } .and not_change { log.read_attribute(:town_or_city) }
.and not_change { log.read_attribute(:county) } .and not_change { log.read_attribute(:county) }
.and not_change { log.read_attribute(:postcode_full) } .and(not_change { log.read_attribute(:postcode_full) })
end end
it "does not reset LA" do it "does not reset LA" do
expect { log.set_derived_fields! } expect { log.set_derived_fields! }
.to not_change { log.read_attribute(:la) } .to(not_change { log.read_attribute(:la) })
end end
end end
@ -1519,7 +1519,7 @@ RSpec.describe LettingsLog, type: :model do
it "does not reset LA" do it "does not reset LA" do
expect { log.set_derived_fields! } expect { log.set_derived_fields! }
.to not_change { log.read_attribute(:la) } .to(not_change { log.read_attribute(:la) })
end end
end end
end end
@ -1555,12 +1555,12 @@ RSpec.describe LettingsLog, type: :model do
.and not_change { log.read_attribute(:address_line2) } .and not_change { log.read_attribute(:address_line2) }
.and not_change { log.read_attribute(:town_or_city) } .and not_change { log.read_attribute(:town_or_city) }
.and not_change { log.read_attribute(:county) } .and not_change { log.read_attribute(:county) }
.and not_change { log.read_attribute(:postcode_full) } .and(not_change { log.read_attribute(:postcode_full) })
end end
it "does not reset LA" do it "does not reset LA" do
expect { log.set_derived_fields! } expect { log.set_derived_fields! }
.to not_change { log.read_attribute(:la) } .to(not_change { log.read_attribute(:la) })
end end
end end

Loading…
Cancel
Save