Browse Source

feat: lint

pull/1931/head
natdeanlewissoftwire 3 years ago
parent
commit
f444304c9d
  1. 8
      spec/models/lettings_log_spec.rb

8
spec/models/lettings_log_spec.rb

@ -2036,10 +2036,10 @@ RSpec.describe LettingsLog do
end end
describe "when changing a log's scheme and hence calling reset_scheme_location!" do describe "when changing a log's scheme and hence calling reset_scheme_location!" do
let!(:scheme) { FactoryBot.create(:scheme)} let(:scheme) { FactoryBot.create(:scheme)}
let!(:invalid_location_1) { FactoryBot.create(:location, scheme:, startdate: Time.zone.today + 3.weeks)} let(:invalid_location_1) { FactoryBot.create(:location, scheme:, startdate: Time.zone.today + 3.weeks)}
let!(:valid_location) { FactoryBot.create(:location, scheme:, startdate: Time.zone.yesterday)} let(:valid_location) { FactoryBot.create(:location, scheme:, startdate: Time.zone.yesterday)}
let!(:invalid_location_2) { FactoryBot.create(:location, scheme:, startdate: Time.zone.today + 3.weeks)} let(:invalid_location_2) { FactoryBot.create(:location, scheme:, startdate: Time.zone.today + 3.weeks)}
context "when there is one valid location and many invalid locations in the new scheme" do context "when there is one valid location and many invalid locations in the new scheme" do
let(:log) { create(:lettings_log, scheme: nil, location_id: nil, startdate: Time.zone.today) } let(:log) { create(:lettings_log, scheme: nil, location_id: nil, startdate: Time.zone.today) }

Loading…
Cancel
Save